File: qweb-test-output.xml

package info (click to toggle)
oca-core 11.0.20180730-1
  • links: PTS, VCS
  • area: main
  • in suites: buster
  • size: 509,684 kB
  • sloc: xml: 258,806; python: 164,081; sql: 217; sh: 92; makefile: 16
file content (42 lines) | stat: -rw-r--r-- 1,217 bytes parent folder | download | duplicates (2)
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
<templates>
    <!-- esc, evaluates and returns @t-esc after having xml-escaped it -->
    <t t-name="esc-literal">
        <t t-esc="'ok'"/>
    </t>
    <result id="esc-literal">ok</result>

    <t t-name="esc-variable">
        <t t-esc="var"/>
    </t>
    <params id="esc-variable">{"var": "ok"}</params>
    <result id="esc-variable">ok</result>

    <t t-name="esc-toescape">
        <t t-esc="var"/>
    </t>
    <params id="esc-toescape"><![CDATA[{"var": "<ok>"}]]></params>
    <result id="esc-toescape"><![CDATA[&lt;ok&gt;]]></result>
    <t t-name="esc-node">
        <span t-esc="'ok'"/>
    </t>
    <result id="esc-node"><![CDATA[<span>ok</span>]]></result>


    <!-- raw, evaluates and returns @t-raw directly (no escaping) -->
    <t t-name="raw-literal">
        <t t-raw="'ok'"/>
    </t>
    <result id="raw-literal">ok</result>

    <t t-name="raw-variable">
        <t t-raw="var"/>
    </t>
    <params id="raw-variable">{"var": "ok"}</params>
    <result id="raw-variable">ok</result>

    <t t-name="raw-notescaped">
        <t t-raw="var"/>
    </t>
    <params id="raw-notescaped"><![CDATA[{"var": "<ok>"}]]></params>
    <result id="raw-notescaped"><![CDATA[<ok>]]></result>
</templates>