mozilla /nunjucks

A powerful templating engine with inheritance, asynchronous control, and more (jinja2 inspired)

★ 9,006⑂ 665👁 128⑃ 523● 1,023▤ 36
JavaScriptBSD-2-ClauseCreated 2012-08-09mozilla.github.io/nunjucks/
Download: v3.2.4v3.2.4 ↓3.2.42023-04-19
+0
Daily
9,006
stars
665
forks
128
watchers
523
prs
1,023
issues
36
releases

README

Nunjucks

[![NPM Version][npm-image]][npm-url]
[![NPM Downloads][downloads-image]][downloads-url]
[![CI][github-actions-image]][github-actions-url]
[![Codecov][codecov-image]][codecov-url]

Nunjucks is a full featured
templating engine for javascript. It is heavily inspired by
jinja2. View the docs
here.

 Installation

npm install nunjucks

To use the file watcher built-in to Nunjucks, Chokidar must be installed separately.

npm install nunjucks chokidar

(View the CHANGELOG)

 Documentation

Nunjucks info and documentation source is in /docs and publishes to https://mozilla.github.io/nunjucks/

 Browser Support

Supported in all modern browsers. For IE8 support, use es5-shim.

 Tests

Run the tests with npm test.

 Get in touch

If you have ideas or questions, or need help, you can reach us in the nunjucks:mozilla.org room on Matrix.

 Want to help?

Contributions are always welcome! Before you submit an issue or pull request, please read our contribution guidelines.

 Contributors




[npm-image]: https://img.shields.io/npm/v/nunjucks.svg
[npm-url]: https://npmjs.org/package/nunjucks
[downloads-image]: https://img.shields.io/npm/dm/nunjucks.svg
[downloads-url]: https://npmjs.org/package/nunjucks
[github-actions-image]: https://github.com/mozilla/nunjucks/actions/workflows/tests.yml/badge.svg
[github-actions-url]: https://github.com/mozilla/nunjucks/actions
[codecov-image]: https://img.shields.io/codecov/c/gh/mozilla/nunjucks.svg
[codecov-url]: https://codecov.io/gh/mozilla/nunjucks/branch/master

Top issues

Latest release

v3.2.4 v3.2.4 2023-04-19
What's Changed
 fix: html encode backslashes if used with escape filter or autoescape by @fdintino in https://github.com/mozilla/nunjucks/pull/1437. Fixes CVE-2023-2142
 (bugzilla 1825980)


Full Changelog: https://github.com/mozilla/nunjucks/compare/v3.2.3...v3.2.4

Snapshot: 2026-11-16T09:23:14Z · Data license Apache-2.0 · JSON