It seems that at least some recent versions of Mako don't convert
objects to strings before attempting to render them, leading to a
TypeError for things like flash messages, which are no objects and not
just strings.
Reported-by: João Felipe Santos <joao.eel@gmail.com>
</table>
</div>
% for message in h.flash.pop_messages():
- <div class="flash">${message | n}</div>
+ <div class="flash">${str(message) | n}</div>
% endfor
<div id="content">
${next.body()}