layout

指定渲染的layout,仅能在html template中使用。

默认使用 layouts/theme.html

{{#layout name /}}

参数

  • name string: 您要使用的布局文件的名称(用引号括起来),或者为无布局(none)。

例子

不使用layout

不使用layout下的模板。

{{#layout none /}}

使用指定模板

使用 layout/password.html 模板

{{#layout "password" /}}
这篇文章对你有帮助吗?