judas-christ / static2000-pug

Pug adapter for Static2000

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

static2000-pug Build Status

This package has moved into the Static2000 monorepo.

Pug adapter for Static2000.

Installation

Via npm:

npm install static2000-pug

Usage

This is the default template adapter for static2000. Install, create templates and content as .pug files and run.

Globals

Global include

This adapter includes [templates folder]/includes/globals.pug in all files, templates and content, so mixins defined there are available both in the body of content and in templates:

+my-mixin()

Global functions

The global functions are available without namespace in the templates:

- var visiblePages = query({ visible: true });

About

Pug adapter for Static2000

License:MIT License


Languages

Language:JavaScript 95.8%Language:Pug 4.2%