Handlebar Helper Function: Each
Iterates over arrays, lists, and objects, rendering a block for each element. This built-in helper is provided by the Handlebars.Net library.
| 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.
- Github: Handlebars.Net
- Handlebars Language Guide: Built-in Helpers