mirror of
https://github.com/marko-js/marko.git
synced 2025-12-08 19:26:05 +00:00
90 lines
1.7 KiB
XML
90 lines
1.7 KiB
XML
<c-template
|
|
c-functions="invalidFunction"
|
|
w-functions="invalidWidgetFunction">
|
|
|
|
${greeting("World")
|
|
<div>
|
|
${invalid expression%}
|
|
</div>
|
|
|
|
<div class="${invalid">
|
|
</div>
|
|
|
|
|
|
|
|
<for>
|
|
Missing each attribute
|
|
</for>
|
|
|
|
<for each="item">
|
|
</for>
|
|
|
|
<for each="item in items" invalid="true">
|
|
Invalid attribute
|
|
</for>
|
|
|
|
<for each="item in items" separator="${;">
|
|
Invalid separator
|
|
</for>
|
|
|
|
<c-invalidTag>
|
|
</c-invalidTag>
|
|
|
|
<div for="item in items; invalid=true">
|
|
</div>
|
|
|
|
<choose>
|
|
<when test="true">A</when>
|
|
<otherwise>INVALID</otherwise>
|
|
<when test="true">B</when>
|
|
</choose>
|
|
|
|
<choose>
|
|
|
|
<when test="false">A</when>
|
|
INVALID TEXT
|
|
<when test="true">TRUE</when>
|
|
<otherwise>C</otherwise>
|
|
</choose>
|
|
|
|
<def>
|
|
</def>
|
|
|
|
<def function="invalid-function-name()">
|
|
<c-invalidTag2></c-invalidTag2>
|
|
</def>
|
|
|
|
<include>Missing template attribute</include>
|
|
|
|
<with vars="x=1;b=2;1">
|
|
</with>
|
|
|
|
<if test="false">
|
|
A
|
|
</if>
|
|
INVALID
|
|
<else>
|
|
C
|
|
</else>
|
|
|
|
<if test="false">
|
|
A
|
|
</if>
|
|
INVALID
|
|
<else-if test="false">
|
|
A
|
|
</else-if>
|
|
<else>
|
|
C
|
|
</else>
|
|
|
|
<div class="test">
|
|
<attr name="class" value="duplicate"/>
|
|
</div>
|
|
|
|
<test-popover title="Popover Title" invalidAttr1="invalidValue1">
|
|
<attr name="invalidAttr2" value="invalidValue2"/>
|
|
<attr name="invalidAttr3">invalidValue3</attr>
|
|
<attr name="invalidAttr4" if="invalidIf">invalidValue4</attr>
|
|
</test-popover>
|
|
</c-template> |