<% _.each(items,function(item, index){ %> <% if (index != items.length - 1) { %> <% } %> <% }); %>