.use(views(__dirname + '/views', {
map: {
html: 'nunjucks'
}
}))
asd.html 和 test.html 同在views文件夹下, test.html代码 {% include “asd.html” %}
错位提示: Template render error: (unknown path) Error: template not found: asd.html
.use(views(__dirname + '/views', {
map: {
html: 'nunjucks'
}
}))
asd.html 和 test.html 同在views文件夹下, test.html代码 {% include “asd.html” %}
错位提示: Template render error: (unknown path) Error: template not found: asd.html