Mercurial > genshi > genshi-test
view examples/includes/module/test.html @ 172:4b4e80b2b0b5
Fix for #30 (trouble using `py:def`inside a match template)
author | cmlenz |
---|---|
date | Fri, 18 Aug 2006 23:23:45 +0000 |
parents | 33c2702cf6da |
children | 24757b771651 |
line wrap: on
line source
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"> <html xmlns="http://www.w3.org/1999/xhtml" xmlns:py="http://markup.edgewall.org/" xmlns:xi="http://www.w3.org/2001/XInclude"> <xi:include href="${skin}/layout.html" /> <xi:include href="custom_stuff.html"><xi:fallback/></xi:include> <body class="$bozz"> <ul py:attrs="{'id': 'second', 'class': None}" py:if="len(items) > 0"> <li py:for="item in items">Item ${item.split()[-1]}</li> XYZ ${hey} </ul> ${macro1()} ${macro1()} ${macro1()} ${macro2('john')} ${macro2('kate', classname='collapsed')} <div py:content="macro2('helmut')" py:strip="">Replace me</div> <greeting name="Dude" /> <greeting name="King" /> <span class="greeting">Hello Silicon</span> </body> </html>