Configuring Nunjucks

acetate.renderer.nunjucks is a full Nunjucks environment. This makes it easy to use any of the Nunjucks environemnt methods to configure Nunjucks as well as install helper libraries like nunjucks-date.

const nunjucksDate = require('nunjucks-date');

nunjucksDate.setDefaultFormat('MMMM Do YYYY, h:mm:ss a');

nunjucksDate.install(acetate.renderer.nunjucks);

Edit this Page on GitHub