layout

Specifies the layout file used for rendering. The layout tag can only be used in HTML templates.

If the layout tag is not used in the current template, the system uses the layout/theme.html file by default.

{{#layout name /}}

Required params

name string: The name of the layout file that you want to use. Specify none if you do not want to use any layout file.

Examples

Disabling layout

The following example is used to render the current template without using any file from the layout directory.

{{#layout none /}}

Using a specified layout file

The following example is used to render the current template with the layout/password.html file.

{{#layout "password" /}}
Was this article helpful to you?