0
|
1 |
<?xml version="1.0" encoding="UTF-8"?>
|
|
2 |
<templateml xmlns="http://www.s60.com/xml/templateml/1" xmlns:xi="http://www.w3.org/2001/XInclude">
|
|
3 |
<desc>Description field text</desc>
|
|
4 |
<output file="output_file1.txt" encoding="UTF-8" dir="output">
|
|
5 |
<template><xi:include href="template.txt" parse="text"/></template>
|
|
6 |
</output>
|
|
7 |
<output file="output_file2.txt" encoding="UTF-8">
|
|
8 |
<template>
|
|
9 |
This template uses custom filter to count the sum of 2 and 3:
|
|
10 |
2+3={{ 2|example_filter(3) }}
|
|
11 |
</template>
|
|
12 |
</output>
|
|
13 |
<filter name="example_filter">lambda a,b: a+b</filter>
|
|
14 |
<filter name="example_filter2"><xi:include href="example.filter" parse="text"/></filter>
|
|
15 |
</templateml>
|