<% function getName(path) { var spl = path.split("/"); return spl[spl.length-1]; } %>
Render HTML
<% _.each(imageset.images,function(mem) { %> <% var image = mem.image; %>
<%= getName(image.path) %>
<% }); %>