title: Mustache JS Table Striping
body: <p>I have started to use "Mustache JS" some hours ago. I wonder if there a way to add a class in a tr in order to make the table striped. I know I can detect if the variable's value is null or undefined, but this is not the case. There will always be a value in the variable. Is there any way to do this?</p>
  
  <p>I got the following code up and running:</p>
  
  <p><strong>The template:</strong></p>
  
  <pre><code>template = "\
          {{#tr}}\
              &lt;tr&gt;\
                  &lt;td&gt;{{tit}}&lt;/td&gt;\
                  &lt;td&gt;{{ord}}&lt;/td&gt;\
                  &lt;td&gt;{{prazo}}&lt;/td&gt;\
                  &lt;td&gt;{{id}}&lt;/td&gt;\
              &lt;/tr&gt;\
          {{/tr}}";
  </code></pre>
  
  <p><strong>The View:</strong></p>
  
  <pre><code>view = {
                  "tr" : [
                      {
                          id : val.ID, 
                          ord : val.Ordem, 
                          prazo : val.Prazo, 
                          tit : val.Título
                      }
                  ]
              };
  </code></pre>
  
  <p>I´m aware that I can set a function in the view. But dunno how to properly set a mod inside it , for the striping. Any help would be great.</p>