summaryrefslogtreecommitdiff
path: root/addons/web/static/lib/qweb/qweb-benchmark.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-benchmark.xml
parent272424894a91aa136952cf88ef206afab5b5505c (diff)
rename base into web part1
bzr revid: al@openerp.com-20110905110309-egx167t1ni1fzho1
Diffstat (limited to 'addons/web/static/lib/qweb/qweb-benchmark.xml')
-rw-r--r--addons/web/static/lib/qweb/qweb-benchmark.xml60
1 files changed, 60 insertions, 0 deletions
diff --git a/addons/web/static/lib/qweb/qweb-benchmark.xml b/addons/web/static/lib/qweb/qweb-benchmark.xml
new file mode 100644
index 00000000000..71452572e51
--- /dev/null
+++ b/addons/web/static/lib/qweb/qweb-benchmark.xml
@@ -0,0 +1,60 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!-- vim:fdl=1:
+-->
+<templates id="template">
+<t t-name="benchmark"><div id="oe_notification" class="oe_notification">
+ <div id="oe_notification_default">
+ <a class="ui-notify-cross ui-notify-close" href="#">x</a>
+ <h1>title</h1>
+ <p>text</p>
+ </div>
+ <div id="oe_notification_alert" class="ui-state-error">
+ <a class="ui-notify-cross ui-notify-close" href="#">x</a>
+ <span style="float:left; margin:2px 5px 0 0;" class="ui-icon ui-icon-alert"></span>
+ <h1>title</h1>
+ <p>text</p>
+ </div>
+ </div>
+ <t t-js="d">
+ d.iter = 'one,two,three,four,five'.split(',')
+ </t>
+ <t t-foreach="iter" t-as="i">
+ <t t-call="benchmark_call">
+ + <t t-esc="i"/>
+ </t>
+ </t>
+ <t t-set="enplus">1</t>
+ <t t-set="novar">true</t>
+ <div t-attf-class="id_#{enplus}"/>
+ <div t-if="testing || true" t-att-class="novar || 'yes'" style="display: none">
+ <t t-set="novar"></t>
+ <t t-set="style">height: 200px; border: 1px solid red;</t>
+ <div t-att="{ 'style' : style, 'disabled' : 'false', 'readonly' : novar or undefined }" t-opentag="true"/>
+ <t t-foreach="{'my': 'first', 'my2': 'second' }" t-as="v">
+ * <t t-esc="v"/> : <t t-esc="v_value"/>
+ </t>
+ Ok this is good <t t-esc="name"/>!
+ <t t-set="myvar">Hi there !</t>
+ [<t t-raw="myvar"/>]
+ <t t-set="myvar2" t-value="'a,b,c,d,e'.split(',')"/>
+ <t t-foreach="myvar2" t-as="i">
+ (<t t-esc="i"/>)
+ </t>
+ </div>
+ <div id="oe_notification" class="oe_notification">
+ <div id="oe_notification_default">
+ <a class="ui-notify-cross ui-notify-close" href="#">x</a>
+ <h1>title</h1>
+ <p>text</p>
+ </div>
+ </div>
+</t>
+<t t-name="benchmark_call">
+ <div id="oe_notification_alert" class="ui-state-error">
+ <a class="ui-notify-cross ui-notify-close" href="#">x</a>
+ <span style="float:left; margin:2px 5px 0 0;" class="ui-icon ui-icon-alert"></span>
+ <h1>Here's your value : (<t t-esc="0"/>) !!</h1>
+ </div>
+</t>
+</templates>
+