A CLI wrapper and file watcher for Nunjucks templates, enabling compilation of Nunjucks files to static HTML. Version 1.0.0, released as an initial stable version, works as a command-line tool for rendering templates with JSON data and watching for changes. Key differentiators: built-in watcher for automatic re-rendering, support for glob patterns, process.env injection as context, and sensible defaults like ignoring partials starting with underscore.
npm install nunjucks-cliVerified import paths — ran on the pinned version, not inferred.
Shows basic rendering with a template and JSON data, then watching all templates for changes.
Rename files without underscore or use a different tool if you need to compile underscore-prefixed templates.
Use `npx nunjucks` or install globally with `npm i -g nunjucks-cli` then run `nunjucks`.