2.x maintenance fork of Nunjucks templating language

Usage no npm install needed!

<script type="module">
  import apostrophecmsNunjucks from 'https://cdn.skypack.dev/@apostrophecms/nunjucks';


Nunjucks 2.x: long term maintenance fork

This fork of Nunjucks 2.x is maintained by the ApostropheCMS team as part of long term support for ApostropheCMS 2.x. There will be no new features or intentional changes in behavior. We recommend the latest version of the mainstream Nunjucks release for new projects, and plan to use that in future versions of ApostropheCMS that require a templating language.

Our maintenance modifications, if any, are released under the same license as Nunjucks 2.x.


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


npm install @apostrophecms/nunjucks

(View the CHANGELOG) through 2.5.2. An additional changelog will be added here as neded for maintenance updates.


See here. NOTE: this is a legacy version (2.x) and not all 3.x documentation may be relevant.

Browser Support

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


Run the tests with npm test.

Watch master branch's tests running at http://mozilla.github.io/nunjucks/files/tests/browser/.

Mailing List

Join our mailing list and get help with and issues you have: https://groups.google.com/forum/?fromgroups#!forum/nunjucks