Mercurial > genshi > genshi-test
comparison examples/basic/module/test.html @ 3:e86dcec16d55
Added basic example.
author | cmlenz |
---|---|
date | Sat, 03 Jun 2006 12:28:53 +0000 |
parents | |
children |
comparison
equal
deleted
inserted
replaced
2:e22ec9e4f213 | 3:e86dcec16d55 |
---|---|
1 <!DOCTYPE html | |
2 PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" | |
3 "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"> | |
4 <html xmlns="http://www.w3.org/1999/xhtml" | |
5 xmlns:py="http://purl.org/kid/ns#" | |
6 xmlns:xi="http://www.w3.org/2001/XInclude"> | |
7 <xi:include href="${skin}_header.html" /> | |
8 <xi:include href="macros.html" /> | |
9 <xi:include href="custom_stuff.html"><xi:fallback/></xi:include> | |
10 <body class="$bozz"> | |
11 <ul py:attrs="{'id': 'second', 'class': None}" py:if="len(items) > 0"> | |
12 <li py:for="item in items">Item $prefix${item.split()[-1]}</li> | |
13 XYZ ${hey} | |
14 </ul> | |
15 ${macro1()} ${macro1()} ${macro1()} | |
16 ${macro2('john')} | |
17 ${macro2('kate', classname='collapsed')} | |
18 <div py:content="macro2('helmut')" py:strip="">Replace me</div> | |
19 <greeting name="Dude" /> | |
20 <greeting name="King" /> | |
21 <span class="greeting">Hello Silicon</span> | |
22 </body> | |
23 </html> |