Baike.dev
All toolsOnline toolsAI codingTrendingOpen sourceNewsSubmit
Log in
< Back to tools
N

nunjucks

> 编程语言
Open source

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

9.0K stars0 likes2 views
WebsiteGitHub

About

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

Nunjucks

NPM Version NPM Downloads CI Codecov

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

Issues· 363 open

View all issuesOpen on GitHub
  • #1525

    [Security] XSS in urlize filter via unescaped URL in href attribute

    Updated Sep 14, 2026
  • #1536

    Widen chokidar peer range to ^3 || ^4 so npm 10 installs cleanly alongside modern tooling

    Updated Aug 7, 2026
  • #1523

    Content security policy (CSP) violation using nunjucks browser compiled files

    Updated Feb 26, 2026
  • #1522

    [API]Circular references in templates causes "RangeError: Maximum call stack size exceeded" error

    Updated Feb 21, 2026
  • #1520

    Does nunjucks have cli to use template to generate html?

    Updated Feb 9, 2026
  • #1484

    A proposal for Nunjucks maintenance

    Updated Dec 11, 2025
  • #664

    Nested call/caller doesn't work.

    bugUpdated Oct 17, 2025
  • #755

    Relative paths not working in precompiled templates in the browser

    bugUpdated Oct 6, 2025
  • #1513

    Indent filter crashes when passed unexpected input

    Updated Sep 4, 2025
  • #1059

    Nunjucks 4 roadmap / tracking ticket

    Updated Jul 31, 2025

> Tags

JavaScript

No comments yet. Be the first to share.

> Details

PublishedAug 1, 2026
UpdatedSep 29, 2026
Category编程语言
PricingOpen source

> Related tools

T
TypeScript
JavaScript 的超集,为前端与全栈提供静态类型
P
Python
通用编程语言,广泛用于 Web、数据与 AI
G
Go
Google 推出的简洁高效系统语言