for loop in view now ends with 'end%}' rather than 'endfor%}'