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.
我正在尝试为一个特定视图设置模板/布局(不更改默认模板)。谁能指出我正确的方向?谢谢!
我想到了。
在视图控制器(在我的例子中:routes\views\index.js)中,您可以将选项传递给 view.render() 函数。
我变了
view.render('index');
到
view.render('index', {layout:'landing'});
真正让我震惊的是我需要重新启动应用程序才能使其生效。