Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/matter-in-motion/mm-nunjucks
Nunjucks templates
https://github.com/matter-in-motion/mm-nunjucks
extension matter-in-motion nunjucks templates
Last synced: 6 days ago
JSON representation
Nunjucks templates
- Host: GitHub
- URL: https://github.com/matter-in-motion/mm-nunjucks
- Owner: matter-in-motion
- License: mit
- Created: 2017-07-29T19:06:10.000Z (over 7 years ago)
- Default Branch: master
- Last Pushed: 2018-03-28T15:27:42.000Z (almost 7 years ago)
- Last Synced: 2024-04-26T20:46:53.438Z (9 months ago)
- Topics: extension, matter-in-motion, nunjucks, templates
- Language: JavaScript
- Size: 5.86 KB
- Stars: 0
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: readme.md
- License: LICENSE
Awesome Lists containing this project
README
# Matter In Motion. Nunjucks templates
[![NPM Version](https://img.shields.io/npm/v/mm-nunjucks.svg?style=flat-square)](https://www.npmjs.com/package/mm-nunjucks)
[![NPM Downloads](https://img.shields.io/npm/dt/mm-nunjucks.svg?style=flat-square)](https://www.npmjs.com/package/mm-nunjucks)[Nunjucks templates](https://mozilla.github.io/nunjucks) extension for [matter in motion](https://github.com/matter-in-motion/mm) framework
## Usage
[Extensions installation instructions](https://github.com/matter-in-motion/mm/blob/master/docs/extensions.md)
Adds nunjucks templates [Environment](https://mozilla.github.io/nunjucks/api.html#environment) as `templates.nunjucks` unit.
## Settings
Add `nunjucks` section to your settings with path to templates.
* **path** — string, path to where your templates live
* global — object, global variables to add to an environment context
* [The rest available options](https://mozilla.github.io/nunjucks/api.html#configure)If your `core.debug` options is true it will reload templates when they are changed.
License: MIT.