title: Can a jquery template have a for loop
body: <p>I need to build a jQuery template that has a month dropdown and a day of the month dropdown in it.  It seems like overkill for me to have to include a month list and a day list in each of my JSON model items that has values 1 to 31 just so that I can build options with the {{each}} syntax.</p>
  
  <p>I've seen how you can add a dynamic array inside of {{each}} in another answer:
  <a href="https://stackoverflow.com/questions/5147766/can-i-declare-local-temp-variables-within-a-jquery-template">Can I declare local/temp variables within a jQuery template?</a></p>
  
  <p>I can probably just define an array inside that with values 1 to 31.  But even that is a little verbose.  Is there a better way to do a for loop in jquery templates?</p>
  
  <p>I can probably find some date object to iterate for the date specific case, but what about a non date related for loop use case?</p>
  
  <p>I want the loop fully defined in the template body without using an external global variable.  With a global variable, I could easily use {{each}}.</p>