@matter-in-motion/templates.nunjucks

1.0.0 • Public • Published

Matter In Motion. Nunjucks templates

NPM Version NPM Downloads

Node.js framework for building applications (cli, server, etc...).

Nunjucks

Nunjucks templates extension for matter in motion framework

Installation

npm i @matter-in-motion/templates.nunjucks

Usage

  1. Add templates.nunjucks to your extensions in the settings.
const env = app.require('templates.nunjucks');
env.renderString('Hello {{ name }}', { name: 'World' });

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
  • extensions — array of nunjucks extensions that would be added to nunjucks environment
  • options - nunjukcs options

License: MIT.

Package Sidebar

Install

npm i @matter-in-motion/templates.nunjucks

Weekly Downloads

0

Version

1.0.0

License

MIT

Unpacked Size

6.11 kB

Total Files

8

Last publish

Collaborators

  • velocityzen