Configure EJS view engine options - Express framework

走远了吗. 提交于 2019-12-01 19:20:01

问题


How can I configure the open/close tags (see "Custom Tags" in the documentation) in the EJS view engine, which is included in the Express framework?


回答1:


Found this in the documentation, under http://expressjs.com/guide.html#view-rendering

app.set('view options', {
    open: '{{',
    close: '}}'
});


来源:https://stackoverflow.com/questions/5532404/configure-ejs-view-engine-options-express-framework

标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!