Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
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
- Host: GitHub
- URL: https://github.com/judas-christ/static2000-pug
- Owner: judas-christ
- License: mit
- Created: 2014-12-01T20:59:04.000Z (about 10 years ago)
- Default Branch: dev
- Last Pushed: 2021-08-10T17:35:36.000Z (over 3 years ago)
- Last Synced: 2024-10-31T03:18:19.287Z (about 2 months ago)
- Topics: javascript, nodejs, pug, static2000
- Language: JavaScript
- Homepage:
- Size: 59.6 KB
- Stars: 0
- Watchers: 2
- Forks: 0
- Open Issues: 4
-
Metadata Files:
- Readme: README.md
- License: LICENSE
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 });
```