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
var alphabet = "abcdefghijklmnopqrstuvwxyz".split(""); _.each(alphabet, function(letter) { console.log(letter); });
That's how you could do it.