<%if(typeof firstLoopItem != 'undefined'){ %>
  • <%=((typeof itemFn == 'function' && itemFn(firstLoopItem, -1)) || firstLoopItem.name) %>
  • <%} %> <%for(var i = 0, len = data.length; i < len; i++) { %>
  • <%=((typeof itemFn == 'function' && itemFn(data[i], i)) || data[i].name) %>
  • <%} %> <%if(typeof lastLoopItem != 'undefined'){ %>
  • <%=((typeof itemFn == 'function' && itemFn(lastLoopItem, -1)) || lastLoopItem.name) %>
  • <%} %>