Mercurial > genshi > mirror
comparison examples/bench/simpletal/template.html @ 103:0f246a30d3a7 trunk
benchmark: improved functionality of SimpleTAL example. Thanks to bruno desthuilliers for some tips.
author | cmlenz |
---|---|
date | Wed, 26 Jul 2006 08:50:09 +0000 |
parents | 8d6bee631a58 |
children |
comparison
equal
deleted
inserted
replaced
102:e20a153cc20c | 103:0f246a30d3a7 |
---|---|
18 <span metal:fill-slot="name" tal:omit-tag="">world</span> | 18 <span metal:fill-slot="name" tal:omit-tag="">world</span> |
19 </div> | 19 </div> |
20 | 20 |
21 <h2>Loop</h2> | 21 <h2>Loop</h2> |
22 <ul tal:condition="items"> | 22 <ul tal:condition="items"> |
23 <li tal:repeat="item items" tal:content="item">Item</li> | 23 <li tal:repeat="item items" tal:content="item" |
24 tal:attributes="class python:repeat['item'].getEnd() and 'last' or None">Item</li> | |
24 </ul> | 25 </ul> |
25 | 26 |
26 </div> | 27 </div> |
27 </body> | 28 </body> |
28 </html> | 29 </html> |