summaryrefslogtreecommitdiff
path: root/addons/web/static/lib/qweb/qweb-benchmark.xml
blob: a499b4f13c556ddaca9373da2226e68f37723f3e (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
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>