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.

ParameterTypeDescription
collectionarray or objectRequired. 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.