This package has been deprecated

Author message:

Deprecated. Broccoli is no longer maintained.

broccoli-nunjucks

3.0.0 • Public • Published

broccoli-nunjucks

Precompile Nunjucks templates

Issues with the output should be reported on the Nunjucks issue tracker.

Install

npm install --save-dev broccoli-nunjucks

Usage

var nunjucks = require('broccoli-nunjucks');
tree = nunjucks(tree, options);

API

nunjucks(tree, [options])

Same options as nunjucks.precompile() except for name.

options.name

Type: function
Default: Relative template path. Example: templates/list.html

You can override the default behavior by supplying a function which gets the relative path and is expected to return the name.

Example:

nunjucks(tree, {
	name: function (relativePath) {
		return 'tpl-' + relativePath;
	}
});

License

MIT © Sindre Sorhus

Versions

Current Tags

  • Version
    Downloads (Last 7 Days)
    • Published

Version History

  • Version
    Downloads (Last 7 Days)
    • Published
  • 2.0.0
    5
  • 1.0.1
    4
  • 1.0.0
    3
  • 0.1.0
    3

Package Sidebar

Install

npm i broccoli-nunjucks

Weekly Downloads

65

Version

3.0.0

License

MIT

Unpacked Size

3.88 kB

Total Files

4

Last publish

Collaborators

  • sindresorhus