title: Alternating classes using jQuery Template
body: <p>I'd like, based on an array of data received, to produce a list of <code>&lt;li&gt;</code> items. Each one will have an alternating class of either "even" or "odd". Here is what I have so far:</p>
  
  <pre><code>&lt;script id="news_template" type="text/x-jquery-tmpl"&gt;
      &lt;li&gt;
          {{= title }}
      &lt;/li&gt;
  &lt;/script&gt;
  </code></pre>
  
  <p>Looking over the documentation, I don't see anything that would easily lend itself to doing this. Any thoughts?</p>
  
  <p>Thanks.</p>
  
  <p>EDIT: If I could simply evaluate raw JavaScript in some way, I could simply set a variable and base my output on that in each iteration. I know jQote2 has this feature. For instance, I could do something like:</p>
  
  <pre><code>&lt;% even = !even; %&gt;
  </code></pre>
  
  <p>...and then base the class on the state of that var.</p>