{#each groups as group (group.id)} {#each group.tools as tool, i (tool.id)} {/each} {/each}