Closed silent-tan closed 7 years ago
app.use(views(path.join(__dirname, '../views'), {
map: { njk: 'nunjucks' },
extension: 'njk'
}));
whereas extension
is optional. This is so you can just do this.render('./view')
instead of this.render('./view.njk')
Let me know if this helps :1st_place_medal:
thanks
my view file is
xxx.njk
but make error:
... can not found xxx.nunjucks