Section

Extract a section of template that can be retrieved in a Yield Tag.


Example

Here’s an example template:

<h1>{{ title }}</h1>
<div>
    {{ content }}
</div>

{{ section:sidebar }}
    Some sidebar stuff!
{{ /section:sidebar }}

Everything within the section:sidebar tag pair will not be rendered in this template. It will be rendered in your layout (or partials within a layout) in the {{ yield:sidebar }} tag.

Last modified on September 21, 2016