87
rated 0 times
[
92]
[
5]
/ answers: 1 / hits: 38946
/ 13 Years ago, thu, february 9, 2012, 12:00:00
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 properties of both. However, once I get into the second iteration, none of the family variables are visible.
{{#each families}}
{{#each members}}
<p>{{ ( here I want a family name property ) }}</p>
<p>{{ ( here I want a member name property ) }}</p>
{{/each}}
{{/each}}
Is this possible? I'd greatly appreciate any help!
More From » handlebars.js