Updated templates to use optimized nunjucks compiler