In mustache if we have an array like :
var a = [1,2,3,4];
We can create template like:
{{#a}}
{{.}}
{{/a}}
to iterate over it. Now if we have some thing like
var a = [[1,2], [3,4], [5,6]]
Can we create a template like:
{{#a}}
key is {{0th element}} and the value is {{1st element}}
{{/a}}
Tried out things and got the solution:
We can do the following:
Here is the jsfiddle link to it.