diff examples/bench/simpletal/template.html @ 103:70ec95c8d1ea

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 16571c57907b
children
line wrap: on
line diff
--- a/examples/bench/simpletal/template.html
+++ b/examples/bench/simpletal/template.html
@@ -20,7 +20,8 @@
 
       <h2>Loop</h2>
       <ul tal:condition="items">
-        <li tal:repeat="item items" tal:content="item">Item</li>
+        <li tal:repeat="item items" tal:content="item"
+            tal:attributes="class python:repeat['item'].getEnd() and 'last' or None">Item</li>
       </ul>
 
     </div>
Copyright (C) 2012-2017 Edgewall Software