title: Add striped styling to a list of items
body: <p>What would be the best way to stripe a list with KnockoutJS? The class on the div below should be even or odd depending where it is in the list, and update when adding or removing items.</p>
  
  <pre class="lang-html prettyprint-override"><code>&lt;div class="Headlines loader" 
       data-bind="css: { loader: headlines().length == 0 }, 
                         template: { name: 'recentHeadlinesTemplate',
                                     foreach: beforeHeadlineAddition, 
                                     beforeRemove: function(elem) { $(elem).slideUp() },
                                     afterAdd: slideDown }"&gt;
  &lt;/div&gt;
  
  &lt;script type="text/html" id="recentHeadlinesTemplate"&gt;
      &lt;div class="even"&gt;
          ${Title}
      &lt;/div&gt;  
  &lt;/script&gt;
  </code></pre>