Marko v3: Added test for @if and @for on same tag

This commit is contained in:
Patrick Steele-Idem 2016-01-11 10:34:49 -07:00
parent 6056703a78
commit 5b1e3111c6
3 changed files with 5 additions and 0 deletions

View File

@ -0,0 +1 @@
<div>red</div><div>green</div><div>blue</div>

View File

@ -0,0 +1,3 @@
<div for(item in ['red', null, 'blue']) if(item)>
${item}
</div>

View File

@ -0,0 +1 @@
exports.templateData = {};