Usage: {{> "partial-name"}}
Description
{{> "partials"}} is a helper for reusing chunks of template code in handlebars files. This can be useful for any repeating elements, such as a post card design, or for splitting out components like a header for easier to manage template files.
All partials are stored in the partials/ directory of the theme. Partials will inherit context and make that context available within the partial file.
Example
partials/post-card.hbs
<article class="post-card.hbs">
<h2 class="post-card-title">
<a href=""></a>
</h2>
<p></p>
</article>Partial properties
Partials can take properties as well which provide the option to set contextual values per use case.
Properties example
partials/call-to-action.hbs
<aside>
<h2></h2>
<form>
<!-- ... -->
</form>
</aside>