Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
在 express.js 中渲染视图时,我尝试跳过渲染布局。我使用翡翠作为我的模板语言。我使用的代码:
res.render("show", { job: data, layout: false });
有什么建议吗?它不断渲染布局....
谢谢
我不是 100% 确定,但我认为这是现在的默认设置。
否则尝试:
app.set('view options', { layout: false });