comparison examples/bench/kid/template.kid @ 69:c40a5dcd2b55 trunk

A couple of minor performance improvements.
author cmlenz
date Mon, 10 Jul 2006 17:37:01 +0000
parents 300b6a3b0730
children 85f70ec37112
comparison
equal deleted inserted replaced
68:e7f91e75b0e1 69:c40a5dcd2b55
7 lang="en"> 7 lang="en">
8 <head> 8 <head>
9 <title>${title}</title> 9 <title>${title}</title>
10 </head> 10 </head>
11 <body> 11 <body>
12 ${header()} 12 <div>${greeting('you')}</div>
13 <div>${greeting('me')}</div>
14 <div>${greeting('all the others')}</div>
13 15
14 <h2>Loop</h2> 16 <h2>Loop</h2>
15 <ul py:if="items"> 17 <ul py:if="items">
16 <li py:for="item in items">${item}</li> 18 <li py:for="idx, item in enumerate(items)" py:content="item"
19 class="${idx == len(items) and 'last' or None}" />
17 </ul> 20 </ul>
18
19 ${footer()}
20 </body> 21 </body>
21 </html> 22 </html>
Copyright (C) 2012-2017 Edgewall Software