I'm trying to use underscore.js templating to iterate over an object
var list = "<% _.each(resgistrations, function(resgistration) { %> <tr><td><%= i %></td><td><%= resgistration %></td></tr> <% }, i); %>";
I don't understand why i won't work as my iterator. I get a reference error i is not defined. This seems like it's straight out of the docs for _.each
iis undefined.