When exactly does the caching happen

11 views
Skip to first unread message

Valter Rodrigues

unread,
May 12, 2016, 7:05:03 AM5/12/16
to Nunjucks
When does the engine compile and cache templates? As far as I can see it's on the render() call, is that right?

So I could do something like

const env = nunjucks.configure(null,options);
env
.render('/absolute/path/to/template.html', context);

and still have the caching benefits?

Carl Meyer

unread,
Jun 10, 2016, 10:33:13 AM6/10/16
to Nunjucks

Yes.
Reply all
Reply to author
Forward
0 new messages