comparison examples/bench/markup/template.html @ 69:c40a5dcd2b55 trunk

A couple of minor performance improvements.
author cmlenz
date Mon, 10 Jul 2006 17:37:01 +0000
parents 448792ab1303
children 85f70ec37112
comparison
equal deleted inserted replaced
68:e7f91e75b0e1 69:c40a5dcd2b55
3 "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"> 3 "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
4 <html xmlns="http://www.w3.org/1999/xhtml" 4 <html xmlns="http://www.w3.org/1999/xhtml"
5 xmlns:py="http://markup.edgewall.org/" 5 xmlns:py="http://markup.edgewall.org/"
6 xmlns:xi="http://www.w3.org/2001/XInclude" 6 xmlns:xi="http://www.w3.org/2001/XInclude"
7 lang="en"> 7 lang="en">
8 <xi:include href="base.html" />
8 <head> 9 <head>
9 <title>${title}</title> 10 <title>${title}</title>
10 </head> 11 </head>
11 <body> 12 <body>
12 <xi:include href="header.html" /> 13 <div>${greeting('you')}</div>
14 <div>${greeting('me')}</div>
15 <div>${greeting('all the others')}</div>
13 16
14 <h2>Loop</h2> 17 <h2>Loop</h2>
15 <ul py:if="items"> 18 <ul py:if="items">
16 <li py:for="item in items" py:content="item"/> 19 <li py:for="idx, item in enumerate(items)" py:content="item"
20 class="${idx == len(items) and 'last' or None}" />
17 </ul> 21 </ul>
18 22
19 <xi:include href="footer.html" />
20 </body> 23 </body>
21 </html> 24 </html>
Copyright (C) 2012-2017 Edgewall Software