annotate examples/includes/module/test.html @ 21:b4d17897d053 trunk

* Include paths are now interpreted relative to the path of the including template. Closes #3. * The filename is now included as first item in the `pos` tuple of stream events. * Simplified the "basic" example so that it actually ''is'' basic. * Added a more complex example using nested relative includes in [source:/trunk/examples/includes/ examples/includes].
author cmlenz
date Tue, 20 Jun 2006 13:05:37 +0000
parents
children 448792ab1303
rev   line source
21
b4d17897d053 * Include paths are now interpreted relative to the path of the including template. Closes #3.
cmlenz
parents:
diff changeset
1 <!DOCTYPE html
b4d17897d053 * Include paths are now interpreted relative to the path of the including template. Closes #3.
cmlenz
parents:
diff changeset
2 PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN"
b4d17897d053 * Include paths are now interpreted relative to the path of the including template. Closes #3.
cmlenz
parents:
diff changeset
3 "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
b4d17897d053 * Include paths are now interpreted relative to the path of the including template. Closes #3.
cmlenz
parents:
diff changeset
4 <html xmlns="http://www.w3.org/1999/xhtml"
b4d17897d053 * Include paths are now interpreted relative to the path of the including template. Closes #3.
cmlenz
parents:
diff changeset
5 xmlns:py="http://purl.org/kid/ns#"
b4d17897d053 * Include paths are now interpreted relative to the path of the including template. Closes #3.
cmlenz
parents:
diff changeset
6 xmlns:xi="http://www.w3.org/2001/XInclude">
b4d17897d053 * Include paths are now interpreted relative to the path of the including template. Closes #3.
cmlenz
parents:
diff changeset
7 <xi:include href="${skin}/layout.html" />
b4d17897d053 * Include paths are now interpreted relative to the path of the including template. Closes #3.
cmlenz
parents:
diff changeset
8 <xi:include href="custom_stuff.html"><xi:fallback/></xi:include>
b4d17897d053 * Include paths are now interpreted relative to the path of the including template. Closes #3.
cmlenz
parents:
diff changeset
9 <body class="$bozz">
b4d17897d053 * Include paths are now interpreted relative to the path of the including template. Closes #3.
cmlenz
parents:
diff changeset
10 <ul py:attrs="{'id': 'second', 'class': None}" py:if="len(items) > 0">
b4d17897d053 * Include paths are now interpreted relative to the path of the including template. Closes #3.
cmlenz
parents:
diff changeset
11 <li py:for="item in items">Item ${item.split()[-1]}</li>
b4d17897d053 * Include paths are now interpreted relative to the path of the including template. Closes #3.
cmlenz
parents:
diff changeset
12 XYZ ${hey}
b4d17897d053 * Include paths are now interpreted relative to the path of the including template. Closes #3.
cmlenz
parents:
diff changeset
13 </ul>
b4d17897d053 * Include paths are now interpreted relative to the path of the including template. Closes #3.
cmlenz
parents:
diff changeset
14 ${macro1()} ${macro1()} ${macro1()}
b4d17897d053 * Include paths are now interpreted relative to the path of the including template. Closes #3.
cmlenz
parents:
diff changeset
15 ${macro2('john')}
b4d17897d053 * Include paths are now interpreted relative to the path of the including template. Closes #3.
cmlenz
parents:
diff changeset
16 ${macro2('kate', classname='collapsed')}
b4d17897d053 * Include paths are now interpreted relative to the path of the including template. Closes #3.
cmlenz
parents:
diff changeset
17 <div py:content="macro2('helmut')" py:strip="">Replace me</div>
b4d17897d053 * Include paths are now interpreted relative to the path of the including template. Closes #3.
cmlenz
parents:
diff changeset
18 <greeting name="Dude" />
b4d17897d053 * Include paths are now interpreted relative to the path of the including template. Closes #3.
cmlenz
parents:
diff changeset
19 <greeting name="King" />
b4d17897d053 * Include paths are now interpreted relative to the path of the including template. Closes #3.
cmlenz
parents:
diff changeset
20 <span class="greeting">Hello Silicon</span>
b4d17897d053 * Include paths are now interpreted relative to the path of the including template. Closes #3.
cmlenz
parents:
diff changeset
21 </body>
b4d17897d053 * Include paths are now interpreted relative to the path of the including template. Closes #3.
cmlenz
parents:
diff changeset
22 </html>
Copyright (C) 2012-2017 Edgewall Software