Permalink
Browse files

edit

  • Loading branch information...
irrelative authored and anandology committed Sep 28, 2008
1 parent 3eb8011 commit b7793117e844f6e16b301c9f3be8e18ac70ac92b
Showing with 15 additions and 1 deletion.
  1. +15 −1 cookbook/alternating_style.md
@@ -26,4 +26,18 @@ Solution: Give templetor access to the `int` built-in and use modulo to test.
$else:
even
">$track.title</li>
- </ul>
+ </ul>
+
+
+## New Templetor ##
+
+In the new implementation of templetor (which will be the default when version .3 is released), within any template loop you have access to a $loop variable. This works like so:
+
+
+ <ul>
+ $for foo in foos:
+ <li class="$loop.parity">
+ $foo
+ </li>
+ </ul>
+

0 comments on commit b779311

Please sign in to comment.