javascript - need advice on dust temmplate -
i new dust (linkedin), working on first little template. after writing obvious (but long) way thought of way optimize using inline partial. long version looks this: {#parcours}<tr class="pcsel_pc" id="{id}"> <td class="pcsel_exp_btn"><a href="#" class="list{?exp}hide{:else}exp{/exp}btn"> <span class="glyphicon glyphicon-{?exp}minus{:else}plus{/exp}"></span></a></td> <td class="pcsel_col">{name}</td><td class="pcsel_col pcsel_num">{count}</td> </tr> {?exp} {#variants} <tr class="pcsel_var{?sel} pcsel_sel{/sel}" id="{id}" > <td class="pcsel_col"> </td><td class="pcsel_var pcsel_col">{name}</td> <td class="pcsel_col pcsel_num">{count}</td> </tr> {/variants} {:else} {#variants} <tr class="pcsel_var pcsel_hide" id=...