Skip to content

Instantly share code, notes, and snippets.

@nhunzaker
Created February 20, 2012 13:54
Show Gist options
  • Save nhunzaker/1869320 to your computer and use it in GitHub Desktop.
Save nhunzaker/1869320 to your computer and use it in GitHub Desktop.
Are Plates collections truly iterative?
<ul>
<li class="name">
[object Object],[object Object]
</li>
</ul>
<ul>
<li class="name">
<span class="first"></span>:
<span class="middle"></span>
<span class="last"></span>
</li>
</ul>
{
name: [
{
"first" : "John",
"middle" : "C",
"last" : "Smith"
},
{
"first" : "Jane",
"middle" : "A",
"last" : "Doe"
}
]
}
<ul>
<li class="name">
<span class="first">John</span>:
<span class="middle">C</span>
<span class="last">Smith</span>
</li>
<li class="name">
<span class="first">Jane</span>:
<span class="middle">A</span>
<span class="last">Doe</span>
</li>
</ul>
// Following the format of other Plates tests
'iterate a collection over nested elements.': (
function() {
return common.createTest('test');
}()
)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment