Handlebar Helper Function: Each
Iterates over arrays, lists, and objects, rendering a block for each element.
This helper is available in the Winter ’26 release of Marketing Cloud Next (API version 65.0).
| Parameter | Type | Description |
|---|---|---|
collection | Array or Object | Required. The array, list, or object to iterate over. |
The function renders the block template for each element in the collection. Within the block, {{this}} refers to the current element. The helper provides standard Handlebars loop variables such as @index, @key, @first, and @last.