dashbars detect first loop code example
Example: dashbars detect first loop
{{#each myarray}}
{{#if (-equal? @index 0) }}
First loop output
{{else}}
second loop and on
{{/if}}
{{/each}}
{{#each myarray}}
{{#if (-equal? @index 0) }}
First loop output
{{else}}
second loop and on
{{/if}}
{{/each}}