* document qweb based (mostly) on JS version * convert JS qweb tests to (mostly) language-independent XML so they can be used for JS and Python implementations * add some more tests (e.g. precedence between t-value and body in t-set) * remove ``t-import`` * fix parity in foreach(dict) (and rename some variables to make array and object versions more similar)
19 lines
600 B
XML
19 lines
600 B
XML
<templates>
|
|
<t t-name="boolean-value-condition">
|
|
<t t-if="condition">ok</t>
|
|
</t>
|
|
<params id="boolean-value-condition">{"condition": true}</params>
|
|
<result id="boolean-value-condition">ok</result>
|
|
|
|
<t t-name="boolean-value-condition-false">
|
|
<t t-if="condition">fail</t>
|
|
</t>
|
|
<params id="boolean-value-condition-false">{"condition": false}</params>
|
|
<result id="boolean-value-condition-false"/>
|
|
|
|
<t t-name="boolean-value-condition-missing">
|
|
<t t-if="condition">fail</t>
|
|
</t>
|
|
<result id="boolean-value-condition-missing"/>
|
|
</templates>
|