title: How do I cycle an odd/even class as it loops over the items?
body: <p>Using the jquery-tmpl, I want to stripe presentation of the rows by adding a class to every second one, so from data ['Cat','Dog','Horse','Noddy'] it generates:</p>
  
  <pre><code>&lt;li&gt;Cat&lt;/li&gt;
  &lt;li class="odd"&gt;Dog&lt;/li&gt;
  &lt;li&gt;Horse&lt;/li&gt;
  &lt;li class="odd"&gt;Noddy&lt;/li&gt;
  </code></pre>
  
  <p>The solutions <a href="http://bugs.jquery.com/ticket/7137#comment:2" rel="nofollow">suggested here</a> looked like the start of something that could be further refined for easy digestion by us noddy's.</p>