Mercurial > genshi > mirror
view examples/basic/test.html @ 134:d681d2c3cd8d trunk
* Improve the accuracy of line numbers for text nodes, so that reported errors about syntax or evaluation errors in expressions point to the right line (not quite perfect yet, though).
* Evaluation errors in expressions now include the original expression code in the traceback.
author | cmlenz |
---|---|
date | Sun, 06 Aug 2006 18:07:21 +0000 |
parents | 448792ab1303 |
children | 84168828b074 |
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" lang="en"> <xi:include href="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 $prefix${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>