<ul>
% for prompt in whateveryoucalledit.values():
<li>${prompt}</li>
% endfor
</ul>
where whateveryoucalleditis the name under which you decided to pass this container (which, as noted by the remark, is a dict, not a list). In the end, the nice thing about mako is that it is wonderfully close to Python itself (except for the need to “trim” things around the bits and explicitly close blocks, not just indend / deindent ;-).
source
share