3
|
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" xmlns:py="http://purl.org/kid/ns#"
|
|
5 py:extends="'macros.kid'" lang="en">
|
|
6 <body class="${bozz}">
|
|
7 <ul py:attrs="{'id': 'second', 'class': None}" py:if="len(items) > 0">
|
|
8 <li py:for="item in items">Item $prefix${item.split()[-1]}</li>
|
|
9 XYZ ${hey}
|
|
10 </ul>
|
|
11 ${macro1()} ${macro1()} ${macro1()}
|
|
12 ${macro2('john')}
|
|
13 ${macro2('kate', classname='collapsed')}
|
|
14 <div py:content="macro2('helmut')" py:strip="">Replace me</div>
|
|
15 <greeting name="Dude" />
|
|
16 <greeting name="King" />
|
|
17 <span class="greeting">Hello Silicon</span>
|
|
18 </body>
|
|
19 </html>
|