mustachio
mustachio copied to clipboard
Referring to individual array element
I have given model
{
"array": [ "foo", "bar", "fizz", "buzz"]
}
in mustache.js you can access individual array elements with this syntax: {{array.2}} which should return "fizz". I tried it with Mustachio and unfortunately it doesn't work. It just interpolates to nothing, no exceptions thrown. Is there a working way of doing this in Mustachio? If not is there an argument against it?