So im trying to render a dust template with two separate arrays. My data is something like:
{
array1: [5, 10, 20],
array2: [10, 20, 40]
}
And my dust template looks like:
{#array1}
<div class="span2">
<input type="number" value={.}></div>
<div class="span2">
<input type="number" value={array2[{$idx}]}></div>
</div>{~n}
{/array1}
It displays the elements from array1 fine, but all the inputs for array2 are blank. I'm using dust-full-1.2.2.js linkedIn fork. What should I do to be able to display the values of array2?