Hi,
I am still wondering if what I found is a valid bug or not.
When I try to test the template engine using the given example below, it works fine.
{
"animals": [
{
"name": "Cat",
"species": "Felis silvestris catus",
"isHuman": false,
},
{
"name": "Dog",
"species": "Canis lupus familiaris",
"isHuman": false,
},
{
"name": "Human",
"species": "Homo sapiens",
"isHuman": true
}
],
"package": {
"name": "templates.js",
"author": "psychobunny",
"url": "http://www.github.com/psychobunny/templates.js"
},
"website": "http://burnaftercompiling.com",
"sayHello": true
}
<!-- BEGIN animals -->
{animals.name} is from the species {animals.species}.
<!-- END animals -->
After that, I had the animals moved under another field 'living' as a child as noted below:
{
"living": {
"animals": [
{
"name": "Cat",
"species": "Felis silvestris catus",
"isHuman": false,
}, ....
]
}
For this JSON data, the following doesn't print out anything:
<!-- BEGIN living.animals -->
{living.animals.name} is from the species {living.animals.species}.
<!-- END living.animals -->
Is this a known limitation or a bug? Am I missing something here?
Thanks