0.1.2 • Published 9 years ago

themeleon-nunjucks v0.1.2

Weekly downloads
2
License
Unlicense
Repository
github
Last release
9 years ago

Themeleon Nunjucks

Nunjucks mixin for Themeleon.

Warning: this repository/package is deprecated, template engines will be handled by consolidate.js in Themeleon 3.0.

Installation

In your package.json:

{
  "dependencies": {
    "themeleon": "1.*",
    "themeleon-nunjucks": "1.*"
  }
}

Usage

var themeleon = require('themeleon')();

// Use the Nunjucks mixin
themeleon.use('nunjucks');

// Or inject your own instance
themeleon.use('nunjucks', require('nunjucks'));

module.exports = themeleon(__dirname, function (t) {
  // Configure Nunjucks views basePath and options.
  // See https://mozilla.github.io/nunjucks/api.html#configure
  t.nunjucks.configure('views', options);
  // Compile a Nunjucks view as `index.html` in destination directory
  t.nunjucks('index.html', 'dist/index.html');
});
0.1.2

9 years ago

0.1.1

10 years ago

0.1.0

10 years ago