%h1
  <%= class_name %> controller, index action
%p
  Edit this file in
  %tt
    app/views/<%= file_name %>/index.html.erb
%table
  %tr
<% for property in properties.reject{|p| p.lazy?} -%>
    %th
      <%= DataMapper::Inflection.humanize(property.field) %>
<% end -%>
  - for <%= singular_model %> in @<%= plural_model %>
    %tr
<% for property in properties.reject{|p| p.lazy?} -%>
      %td
        =h <%= singular_model %>.<%= property.getter %>
<% end -%>
      %td
        = link_to 'Show', url(:<%= singular_model %>, <%= singular_model %>)
      %td
        = link_to 'Edit', url(:edit_<%= singular_model %>,  <%= singular_model %>)

= link_to 'New', url(:new_<%= singular_model %>)