backbone.js - How to access model attribute in dust.js section -
i want know how access model attribute array, inside dust section {#} {/}.
model: "a":new array(); "b":{ "c":new array(); } dust template: {#a} want access {c} here... {/a} thanks
to access {#c} when inside {#a}. first need go {#b} inside there need go down c {#a}.
so need this:
{#a} {name} {#b} {#c} {name} {/c} {/b} {/a} demo jsfiddle.
Comments
Post a Comment