block
Renders the blocks in the current iteration scope. Use with the blocks tag.
{{#blocks}}
{{#block [hash...] /}}
{{/blocks}}
hash
Support passing parameters to block components.
Example
Special block processing
Pass special parameters to the @/product-card block.
<!-- section/product-list/product-list.html -->
{{#blocks}}
{{#if forblock.type == "@/product-card"}}
{{#block product=product /}}
{{#else /}}
{{#block /}}
{{/if}}
{{/blocks}}
<!-- blocks/product-card.html -->
<div>{{ props.product.title }}</div>
Was this article helpful to you?