Closed carldanley closed 10 years ago
Given the object:
{
header: {
scripts: [ 'header.js' ],
css: [ 'header.css' ]
},
footer: {
scripts: [ 'footer.js' ]
},
page: {
name: 'testing',
title: 'title'
}
}
and this iteration:
{%each header.css as css%}
<link rel="stylesheet" type="text/css" href="{{css}}">
{%endeach%}
I receive an output of http://cl.ly/image/3E3N3R3a063B. It appears to not maintain the depth when iterating.
I've updated the tree builder to allow for nested properties, in 69d2604, can you try this and let me know if it's fixed?
Feel free to reopen if the problem persists.
I noticed that I cannot access variables like
one.two.three
for some reason. I was trying to iterate over something likepage.scripts.header
and it didn't work.