Here\'s a PHP example of mine. Can anyone find a shorter/easier way to do this?
foreach($posts as $post){?>
Smarty has it inbuilt:
{section name=rows loop=$data} {$data[rows]} {/section}
So does Django:
{% for o in some_list %} ... {% endfor %}