CanJS has it's own iterator, so a Dom library agnostic implementation is
- <% can.each(this.attr("pets"), function(pet, index) { %>
- <span <%= (el) -> can.data(el, "pet", index) %>><%= pet %></span>
- <% }); %>