<% if (names.length) { %>
  <ul>
    <% for (var i = 0; i < names.length; i++) { name = names[i]; %>
      <%# Notice how the single quotation mark is escaped in the output HTML %>
      <li foo='<%= name + "'" %>'><%= name %></li>
    <% } %>
  </ul>
<% } %>
