configurationengine/doc/plugins/templateml-plugin/templateml_example0.txt
author terytkon
Thu, 11 Mar 2010 17:04:37 +0200
changeset 0 2e8eeb919028
child 4 0951727b8815
permissions -rw-r--r--
Adding EPL version of configurationengine.
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
0
2e8eeb919028 Adding EPL version of configurationengine.
terytkon
parents:
diff changeset
     1
<?xml version="1.0" encoding="UTF-8"?>
2e8eeb919028 Adding EPL version of configurationengine.
terytkon
parents:
diff changeset
     2
<templateml xmlns="http://www.s60.com/xml/templateml/1" xmlns:xi="http://www.w3.org/2001/XInclude">
2e8eeb919028 Adding EPL version of configurationengine.
terytkon
parents:
diff changeset
     3
    <desc>Description field text</desc>
2e8eeb919028 Adding EPL version of configurationengine.
terytkon
parents:
diff changeset
     4
    <output file="output_file1.txt" encoding="UTF-8" dir="output">
2e8eeb919028 Adding EPL version of configurationengine.
terytkon
parents:
diff changeset
     5
       <template><xi:include href="template.txt" parse="text"/></template>
2e8eeb919028 Adding EPL version of configurationengine.
terytkon
parents:
diff changeset
     6
    </output>
2e8eeb919028 Adding EPL version of configurationengine.
terytkon
parents:
diff changeset
     7
    <output file="output_file2.txt" encoding="UTF-8">
2e8eeb919028 Adding EPL version of configurationengine.
terytkon
parents:
diff changeset
     8
       <template>
2e8eeb919028 Adding EPL version of configurationengine.
terytkon
parents:
diff changeset
     9
          This template uses custom filter to count the sum of 2 and 3:
2e8eeb919028 Adding EPL version of configurationengine.
terytkon
parents:
diff changeset
    10
            2+3={{ 2|example_filter(3) }}
2e8eeb919028 Adding EPL version of configurationengine.
terytkon
parents:
diff changeset
    11
        </template>
2e8eeb919028 Adding EPL version of configurationengine.
terytkon
parents:
diff changeset
    12
    </output>
2e8eeb919028 Adding EPL version of configurationengine.
terytkon
parents:
diff changeset
    13
    <filter name="example_filter">lambda a,b: a+b</filter>
2e8eeb919028 Adding EPL version of configurationengine.
terytkon
parents:
diff changeset
    14
    <filter name="example_filter2"><xi:include href="example.filter" parse="text"/></filter>
2e8eeb919028 Adding EPL version of configurationengine.
terytkon
parents:
diff changeset
    15
</templateml>