<% _.each(fields, function(field){ %> <%= x %>="<%= field[x] %>"<% }%> /> <% }) %>