summaryrefslogtreecommitdiff
path: root/addons/web/static/lib/qweb/qweb-test-call.xml
diff options
context:
space:
mode:
authorAntony Lesuisse <al@openerp.com>2011-09-05 13:03:09 +0200
committerAntony Lesuisse <al@openerp.com>2011-09-05 13:03:09 +0200
commitbedfc48dcfb066e61209337235e339975dd093d0 (patch)
treefd1bab7b9f21380f1aa3ca7675018f13b4d9e652 /addons/web/static/lib/qweb/qweb-test-call.xml
parent272424894a91aa136952cf88ef206afab5b5505c (diff)
rename base into web part1
bzr revid: al@openerp.com-20110905110309-egx167t1ni1fzho1
Diffstat (limited to 'addons/web/static/lib/qweb/qweb-test-call.xml')
-rw-r--r--addons/web/static/lib/qweb/qweb-test-call.xml30
1 files changed, 30 insertions, 0 deletions
diff --git a/addons/web/static/lib/qweb/qweb-test-call.xml b/addons/web/static/lib/qweb/qweb-test-call.xml
new file mode 100644
index 00000000000..5d8f0019f7c
--- /dev/null
+++ b/addons/web/static/lib/qweb/qweb-test-call.xml
@@ -0,0 +1,30 @@
+<templates>
+ <t t-name="basic-callee">ok</t>
+ <t t-name="callee-printsbody"><t t-esc="0"/></t>
+ <t t-name="callee-uses-foo"><t t-esc="foo"/></t>
+ <t t-name="callee-sets-foo"><t t-set="foo" t-value="'ok'"/></t>
+
+ <t t-name="basic-caller">
+ <t t-call="basic-callee"/>
+ </t>
+ <t t-name="with-unused-body">
+ <t t-call="basic-callee">WHEEE</t>
+ </t>
+ <t t-name="with-unused-setbody">
+ <t t-call="basic-callee">
+ <t t-set="qux" t-value="3"/>
+ </t>
+ </t>
+ <t t-name="with-used-body">
+ <t t-call="callee-printsbody">ok</t>
+ </t>
+ <t t-name="with-used-setbody">
+ <t t-call="callee-uses-foo">
+ <t t-set="foo" t-value="'ok'"/>
+ </t>
+ </t>
+ <t t-name="in-context-import">
+ <t t-call="callee-sets-foo" t-import='*'/>
+ <t t-esc="foo"/>
+ </t>
+</templates>