Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/judas-christ/static2000-pug

Pug adapter for Static2000
https://github.com/judas-christ/static2000-pug

javascript nodejs pug static2000

Last synced: about 1 month ago
JSON representation

Pug adapter for Static2000

Awesome Lists containing this project

README

        

static2000-pug [![Build Status](https://travis-ci.com/judas-christ/static2000-pug.svg?branch=master)](https://travis-ci.com/judas-christ/static2000-pug)
===============

> This package has moved into the [Static2000 monorepo](https://github.com/judas-christ/static2000).

[Pug](https://github.com/pugjs/pug) adapter for [Static2000](https://github.com/judas-christ/static2000).

## Installation

Via npm:

```bash
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:

```jade
+my-mixin()
```

### Global functions

The global functions are available without namespace in the templates:

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