mustachio icon indicating copy to clipboard operation
mustachio copied to clipboard

Referring to individual array element

Open microdee opened this issue 5 years ago • 3 comments

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?

microdee avatar Dec 12 '18 13:12 microdee