I would like to use handlebars.js or mustache.js to iterate over a list of families, and then iterate over that family\'s members. Inside of both loops, I want to display pr
You can reference the parent loop variable and index with the ../
operator:
{{#each families}}
{{#each this.members}}
Current member: {{ this.name }} (this = inner loop itterator)
Current family: {{ ../this.title }} (../this = parent loop itterator)
Current member index: {{ @index }}
Current family index: {{ @../index }}
{{/each}}
{{/each}}