annotate examples/basic/test.html @ 113:d10fbba1d5e0 trunk

Removed the `sanitize()` method from the `Markup` class, and migrate the existing unit tests to `markup.tests.filters`. Provide a `Stream.filter()` method instead which can be used to conveniently apply a filter to a stream.
author cmlenz
date Mon, 31 Jul 2006 23:00:06 +0000
parents 448792ab1303
children 84168828b074
rev   line source
3
518a8520a6e1 Added basic example.
cmlenz
parents:
diff changeset
1 <!DOCTYPE html
518a8520a6e1 Added basic example.
cmlenz
parents:
diff changeset
2 PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN"
518a8520a6e1 Added basic example.
cmlenz
parents:
diff changeset
3 "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
518a8520a6e1 Added basic example.
cmlenz
parents:
diff changeset
4 <html xmlns="http://www.w3.org/1999/xhtml"
61
448792ab1303 Use a different namespace than Kid uses.
cmlenz
parents: 21
diff changeset
5 xmlns:py="http://markup.edgewall.org/"
21
b4d17897d053 * Include paths are now interpreted relative to the path of the including template. Closes #3.
cmlenz
parents: 3
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: 3
diff changeset
7 lang="en">
b4d17897d053 * Include paths are now interpreted relative to the path of the including template. Closes #3.
cmlenz
parents: 3
diff changeset
8 <xi:include href="layout.html" />
3
518a8520a6e1 Added basic example.
cmlenz
parents:
diff changeset
9 <xi:include href="custom_stuff.html"><xi:fallback/></xi:include>
518a8520a6e1 Added basic example.
cmlenz
parents:
diff changeset
10 <body class="$bozz">
518a8520a6e1 Added basic example.
cmlenz
parents:
diff changeset
11 <ul py:attrs="{'id': 'second', 'class': None}" py:if="len(items) > 0">
518a8520a6e1 Added basic example.
cmlenz
parents:
diff changeset
12 <li py:for="item in items">Item $prefix${item.split()[-1]}</li>
518a8520a6e1 Added basic example.
cmlenz
parents:
diff changeset
13 XYZ ${hey}
518a8520a6e1 Added basic example.
cmlenz
parents:
diff changeset
14 </ul>
518a8520a6e1 Added basic example.
cmlenz
parents:
diff changeset
15 ${macro1()} ${macro1()} ${macro1()}
518a8520a6e1 Added basic example.
cmlenz
parents:
diff changeset
16 ${macro2('john')}
518a8520a6e1 Added basic example.
cmlenz
parents:
diff changeset
17 ${macro2('kate', classname='collapsed')}
518a8520a6e1 Added basic example.
cmlenz
parents:
diff changeset
18 <div py:content="macro2('helmut')" py:strip="">Replace me</div>
518a8520a6e1 Added basic example.
cmlenz
parents:
diff changeset
19 <greeting name="Dude" />
518a8520a6e1 Added basic example.
cmlenz
parents:
diff changeset
20 <greeting name="King" />
518a8520a6e1 Added basic example.
cmlenz
parents:
diff changeset
21 <span class="greeting">Hello Silicon</span>
518a8520a6e1 Added basic example.
cmlenz
parents:
diff changeset
22 </body>
518a8520a6e1 Added basic example.
cmlenz
parents:
diff changeset
23 </html>
Copyright (C) 2012-2017 Edgewall Software