Nunjucks
▻http://jlongster.github.io/nunjucks
You’ve been looking for a more sophisticated templating engine for JavaScript. Here it is.
Rich Powerful language with block inheritance, autoescaping, macros, asynchronous control, and more. Heavily inspired by jinja2
Fast & Lean High-performant. Small 8K gzipped runtime with precompiled templates in the browser
Extensible Crazy extensible with custom filters and extensions
Everywhere Available in node and all modern web browsers, with thorough precompilation options