<% for msg in sesuser.get_messages() %> <% if loop.first %>

<{ heading }>

<% endif %> <% endfor %>