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-benchmark.xml | |
| parent | 0a15094050bfde69a06d6eff798e9a8ddf2b8c21 (diff) | |
initial commit 2
Diffstat (limited to 'addons/web/static/lib/qweb/qweb-benchmark.xml')
| -rw-r--r-- | addons/web/static/lib/qweb/qweb-benchmark.xml | 58 |
1 files changed, 58 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 00000000..a499b4f1 --- /dev/null +++ b/addons/web/static/lib/qweb/qweb-benchmark.xml @@ -0,0 +1,58 @@ +<?xml version="1.0" encoding="UTF-8"?> +<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 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> + |
