A powerful templating engine with inheritance, asynchronous control, and more (jinja2 inspired)
A powerful templating engine with inheritance, asynchronous control, and more (jinja2 inspired)
Nunjucks is a full featured templating engine for javascript. It is heavily inspired by jinja2. View the docs here.
npm install nunjucks
To use the file watcher built-in to Nunjucks, Chokidar must be installed separately.
npm install nunjucks chokidar
(View the CHANGELOG)
Nunjucks info and documentation source is in /docs and publishes to https://mozilla.github.io/nunjucks/
Supported in all modern browsers. For IE8 support, use es5-shim.
Run the tests with npm test.
If you have ideas or questions, or need help, you can reach us in the #nunjucks:mozilla.org room on Matrix.
Contributions are always welcome! Before you submit an issue or pull request, please read our contribution guidelines.
[Security] XSS in urlize filter via unescaped URL in href attribute
Widen chokidar peer range to ^3 || ^4 so npm 10 installs cleanly alongside modern tooling
Content security policy (CSP) violation using nunjucks browser compiled files
[API]Circular references in templates causes "RangeError: Maximum call stack size exceeded" error
Does nunjucks have cli to use template to generate html?
A proposal for Nunjucks maintenance
Nested call/caller doesn't work.
Relative paths not working in precompiled templates in the browser
Indent filter crashes when passed unexpected input
Nunjucks 4 roadmap / tracking ticket