A powerful templating engine with inheritance, asynchronous control, and more (jinja2 inspired). 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. Crazy extensible with custom filters and extensions. Everywhere available in node and all modern web browsers, with thorough precompilation options. Nunjucks allows you to port all of your existing templates from a project to something that's easier to manage. By moving your templates to the client, transfer sizes are reduced and page responsiveness increases significantly. Your API supplies data, meaning you can decouple testing the front-end from testing the back-end.

Features

  • Use any of the builtin filters to work with variables, and even create your own
  • Use keyword arguments to any function or filter
  • Template inheritance allows you to reuse templates in a powerful way
  • Define skeleton structures that child templates fill in
  • You can even write asynchronous templates if you need to make asynchronous calls in filters!
  • Take advantage of asyncAll to execute all iterations in parallel, assuming lookup is asynchronous

Project Samples

Project Activity

See All Activity >

Categories

Admin Templates

License

BSD License

Follow Nunjucks

Nunjucks Web Site

Other Useful Business Software
Go From AI Idea to AI App Fast Icon
Go From AI Idea to AI App Fast

One platform to build, fine-tune, and deploy ML models. No MLOps team required.

Access Gemini 3 and 200+ models. Build chatbots, agents, or custom models with built-in monitoring and scaling.
Try Free
Rate This Project
Login To Rate This Project

User Reviews

Be the first to post a review of Nunjucks!

Additional Project Details

Programming Language

JavaScript

Related Categories

JavaScript Admin Templates

Registered

2021-07-26