{#access_map.modifiable_objects}
<div class='col-md-2 col-xs-4'>
<i class="fa {icon}"> </i>
<span> {name} </span>
{#mods}
{>"dust/admin/helpers/form-checkbox" name="{form_name}" label="{display_name}" value="{value}"/}
<p> {data.powers.{id}} </p>
{/mods}
</div>
{/access_map.modifiable_objects}
I have the following code above.
Notice how {data.powers.{id}}
is used. My real intention is to do something like : data.powers[<id_name_here>]
or data.powers.<id_name_here>;
However, it renders a string. The scope of ID however, SURELY reaches that part where I used it. Any suggestions?
Sorry I got the answer.
It's supposed to be {data.powers[id]} and not data.powers[{id}]; It works.