title: For loop in jquery template?
body: <p>Does anyone know if it is possible to put a for loop into a jquery template?</p>
  
  <p>For example if I have something like <code>${userCap}</code> where the value of userCap is 10, how could I add a for loop to the template to add options to a select while i is less than userCap?</p>
  
  <pre><code>&lt;select&gt;
  {{for(i=1; i&lt;=userCap; i++)}}
  &lt;option value="${i}"&gt;${i}&lt;/option&gt;
  {{/for }}
  &lt;/select&gt;
  </code></pre>
  
  <p>As per Bergi's request - the plugin I am using is... jQuery Templates <a href="https://github.com/BorisMoore/jquery-tmpl" rel="nofollow">https://github.com/BorisMoore/jquery-tmpl</a></p>