public
Created

Simple example of bug in plates iteration

  • Download Gist
actual-output-2.html
HTML
1 2 3 4 5 6
<div id='complex'>
<div class='one'>subvalue one</div>
<div class='two'>subvalue two</div>
</div>
<div id='simple'></div>
<div id='simple'>simple value</div>
expected-output-1.html
HTML
1 2 3 4 5
<div id='complex'>
<div class='one'>subvalue one</div>
<div class='two'>subvalue two</div>
</div>
<div id='simple'>simple value</div>
sample-input-1.json
JSON
1 2 3 4 5 6 7
{
"simple": "simple value",
"complex": {
"one":"subvalue one",
"two":"subvalue two"
}
}
sample-template-1.html
HTML
1 2 3 4 5
<div id='complex'>
<div class='one'></div>
<div class='two'></div>
</div>
<div id='simple'></div>

Please sign in to comment on this gist.

Something went wrong with that request. Please try again.