On the Underscore.js site, we're given the code example:
var list = "<% _.each(people, function(name) { %> <li><%= name %></li> <% }); %>";
_.template(list, {people: ['moe', 'curly', 'larry']});
=> "<li>moe</li><li>curly</li><li>larry</li>"
Lets assume that I want to pass 2 array of values instead of 1 (@ people). So that I could do something like:
{ %> <li><%= name %> , <%= address %></li> <% }
I tinkered around for a bit and wasn't sure how to use the method for this.