Mercurial > genshi > genshi-test
comparison examples/bench/kid/template.kid @ 69:e9a3930f8823
A couple of minor performance improvements.
author | cmlenz |
---|---|
date | Mon, 10 Jul 2006 17:37:01 +0000 |
parents | b387cf24d329 |
children | 37f128d2d7f4 |
comparison
equal
deleted
inserted
replaced
68:a1f93d095759 | 69:e9a3930f8823 |
---|---|
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> |