<%- collection.each do |item| -%> <%- view_model = view_model_for item -%>
  1. <%= view_model.render_as template_name -%>
  2. <%- end -%>