<% weeks.eachWithIndex{ week, i -> %>
Week No. $i
<% ['capacity','total','done'].each{ attr -> %>
$attr
${week[attr]}
<% } // end of attribute %>
<% } // end of week %>