summaryrefslogtreecommitdiff
path: root/addons/web/static/lib/qweb/qweb-test-set.xml
diff options
context:
space:
mode:
Diffstat (limited to 'addons/web/static/lib/qweb/qweb-test-set.xml')
-rw-r--r--addons/web/static/lib/qweb/qweb-test-set.xml15
1 files changed, 15 insertions, 0 deletions
diff --git a/addons/web/static/lib/qweb/qweb-test-set.xml b/addons/web/static/lib/qweb/qweb-test-set.xml
new file mode 100644
index 00000000000..6a7b4f53d23
--- /dev/null
+++ b/addons/web/static/lib/qweb/qweb-test-set.xml
@@ -0,0 +1,15 @@
+<templates>
+ <t t-name="set-from-attribute-literal">
+ <t t-set="value" t-value="'ok'"/><t t-esc="value"/>
+ </t>
+ <t t-name="set-from-body-literal">
+ <t t-set="value">ok</t><t t-esc="value"/>
+ </t>
+
+ <t t-name="set-from-attribute-lookup">
+ <t t-set="stuff" t-value="value"/><t t-esc="stuff"/>
+ </t>
+ <t t-name="set-from-body-lookup">
+ <t t-set="stuff"><t t-esc="value"/></t><t t-esc="stuff"/>
+ </t>
+</templates>