I\'m using Underscore\'s template() method in BackboneJS views. I\'d like to show a list of alphabet letters in my view in order to sort a collection by letter.
As a
Underscore don't have such ability, but your case could do some trick on the template. change your template like this:
<% for(var i=65; i<90; i++) { %>
- <% print(String.fromCharCode(i)); %>
<% } %>
this should be what you want.