diff options
| author | stephanchrst <stephanchrst@gmail.com> | 2022-05-10 21:51:50 +0700 |
|---|---|---|
| committer | stephanchrst <stephanchrst@gmail.com> | 2022-05-10 21:51:50 +0700 |
| commit | 3751379f1e9a4c215fb6eb898b4ccc67659b9ace (patch) | |
| tree | a44932296ef4a9b71d5f010906253d8c53727726 /addons/web/static/lib/qweb/qweb-test-global.xml | |
| parent | 0a15094050bfde69a06d6eff798e9a8ddf2b8c21 (diff) | |
initial commit 2
Diffstat (limited to 'addons/web/static/lib/qweb/qweb-test-global.xml')
| -rw-r--r-- | addons/web/static/lib/qweb/qweb-test-global.xml | 54 |
1 files changed, 54 insertions, 0 deletions
diff --git a/addons/web/static/lib/qweb/qweb-test-global.xml b/addons/web/static/lib/qweb/qweb-test-global.xml new file mode 100644 index 00000000..8bdefc6a --- /dev/null +++ b/addons/web/static/lib/qweb/qweb-test-global.xml @@ -0,0 +1,54 @@ +<?xml version="1.0" encoding="utf-8"?> + +<templates> + <t t-name="_callee-asc"><Año t-att-falló="'agüero'" t-raw="0"/></t> + <t t-name="_callee-uses-foo"><span t-esc="foo">foo default</span></t> + <t t-name="_callee-asc-toto"><div t-raw="toto">toto default</div></t> + + <t t-name="caller"> + <t t-foreach="[4,5,6]" t-as="value"> + <span t-esc="value"/> + <t t-call="_callee-asc"> + <t t-call="_callee-uses-foo"> + <t t-set="foo" t-value="'aaa'"/> + </t> + <t t-call="_callee-uses-foo"/> + <t t-set="foo" t-value="'bbb'"/> + <t t-call="_callee-uses-foo"/> + </t> + </t> + <t t-call="_callee-asc-toto"/> + <t t-set="toto"><t t-set="truc" t-value="'bbb'"/><i t-att-notruc="not truc or None" t-att-truc="bool(truc)">i</i></t> + <t t-call="_callee-asc-toto"/> + </t> + + <result id="caller"><![CDATA[ + <span>4</span> + <Año falló="agüero"> + <span>aaa</span> + <span>foo default</span> + + <span>bbb</span> + </Año> + + <span>5</span> + <Año falló="agüero"> + <span>aaa</span> + <span>foo default</span> + + <span>bbb</span> + </Año> + + <span>6</span> + <Año falló="agüero"> + <span>aaa</span> + <span>foo default</span> + + <span>bbb</span> + </Año> + + <div>toto default</div> + + <div><i truc="True">i</i></div> + ]]></result> +</templates> |
