Nunjucks is a full featured templating engine for javascript. It is heavily inspired by jinja2. View the docs here.
npm install nunjucks
(View the CHANGELOG)
Note: 1.0 was just pushed out, so if you are currently using nunjucks read the CHANGELOG. Especially important: the client-side browser filenames have changed. Read here.
See here.
Run all the tests at http://mozilla.github.io/nunjucks/files/tests/browser/.
Join our mailing list and get help with and issues you have: https://groups.google.com/forum/?fromgroups#!forum/nunjucks