Skip to main content

#each

The #each node iterates over an array from the payload and creates instances of the file (or folder) for each entry. A new payload is created for each instance by merging the current entry value into the root payload. Also, the created payload is used to render with Handlebars.

{#each persons}{name}.txt
In {{title}}, {{name}} is given the age of {{age}} years.