mirror of
https://github.com/marko-js/marko.git
synced 2025-12-08 19:26:05 +00:00
Marko v3: Added test for @if and @for on same tag
This commit is contained in:
parent
6056703a78
commit
5b1e3111c6
1
test/fixtures/render/autotest/for-if-attr/expected.html
vendored
Normal file
1
test/fixtures/render/autotest/for-if-attr/expected.html
vendored
Normal file
@ -0,0 +1 @@
|
||||
<div>red</div><div>green</div><div>blue</div>
|
||||
3
test/fixtures/render/autotest/for-if-attr/template.marko
vendored
Normal file
3
test/fixtures/render/autotest/for-if-attr/template.marko
vendored
Normal file
@ -0,0 +1,3 @@
|
||||
<div for(item in ['red', null, 'blue']) if(item)>
|
||||
${item}
|
||||
</div>
|
||||
1
test/fixtures/render/autotest/for-if-attr/test.js
vendored
Normal file
1
test/fixtures/render/autotest/for-if-attr/test.js
vendored
Normal file
@ -0,0 +1 @@
|
||||
exports.templateData = {};
|
||||
Loading…
x
Reference in New Issue
Block a user