9
Is it possible to use Handlebars with objects that have numeric keys?
For example:
var str = "<div>{{apples}}</div>",
tmpl = Handlebars.compile(str);
tmpl({apples: "works!"}); // returns "<div>works!</div>"
Works great, but
var str = "<div>{{4}}</div>",
tmpl = Handlebars.compile(str);
tmpl({4: "works!"});
// returns Error: Parse error on line 1: <div>{{4}}</div> -------^ Expecting 'DATA', 'ID', got 'INTEGER'
I was unable to find any references to this when searching, and I have not yet explored the source code.