summaryrefslogtreecommitdiff
path: root/addons/web/static/lib/qweb/qweb-test-attributes.xml
diff options
context:
space:
mode:
authorXavier Morel <xmo@openerp.com>2014-09-08 16:42:15 +0200
committerXavier Morel <xmo@openerp.com>2014-10-06 19:13:41 +0200
commit4fb49a67f39c5a2c1d56d8c171ab91f81f5cb307 (patch)
tree222645102b9c67baf255cf24c97695aa201cc006 /addons/web/static/lib/qweb/qweb-test-attributes.xml
parent35f5fb46e78aef1feda4d9cfddd93bd356bdca28 (diff)
[ADD] qweb-js: jinja-style interpolation pattern
Diffstat (limited to 'addons/web/static/lib/qweb/qweb-test-attributes.xml')
-rw-r--r--addons/web/static/lib/qweb/qweb-test-attributes.xml13
1 files changed, 13 insertions, 0 deletions
diff --git a/addons/web/static/lib/qweb/qweb-test-attributes.xml b/addons/web/static/lib/qweb/qweb-test-attributes.xml
index d0d22b179dc..d03c20e922f 100644
--- a/addons/web/static/lib/qweb/qweb-test-attributes.xml
+++ b/addons/web/static/lib/qweb/qweb-test-attributes.xml
@@ -25,4 +25,17 @@
<t t-name="format-multiple">
<div t-attf-foo="a #{value1} is #{value2} of #{value3} ]"/>
</t>
+
+ <t t-name="format2-literal">
+ <div t-attf-foo="bar"/>
+ </t>
+ <t t-name="format2-value">
+ <div t-attf-foo="b{{value}}r"/>
+ </t>
+ <t t-name="format2-expression">
+ <div t-attf-foo="{{value + 37}}"/>
+ </t>
+ <t t-name="format2-multiple">
+ <div t-attf-foo="a {{value1}} is {{value2}} of {{value3}} ]"/>
+ </t>
</templates>