{{#each materials}} {{#each items}} {{#if items}} {{#each items}} {{/each}} {{else}} {{/if}} {{/each}} {{/each}}