Configure EJS view engine options - Express framework

前端 未结 1 343
予麋鹿
予麋鹿 2021-01-19 21:18

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条回答
  • 2021-01-19 21:33

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

    app.set('view options', {
        open: '{{',
        close: '}}'
    });
    
    0 讨论(0)
提交回复
热议问题