I am trying to generate a board (10X10) using the app engine templates and html table. So this means basically putting a break after 10 iterations of the loop. How can I acieve this using the app engine’s inbuilt template engine (django 0.96)?
Update
Lukes answer solved my problem of automatically inserting the break.
But I still need to find a way to check for each number if it is present in a list and give it a specific class. Is there any way to achieve something like this:
{% for number in list }
<td {% if number in another_list %}class="special"{% endif %}>{{number}}</td>
{% endfor }
At this point you might be better off writing your own templatetag, or using something like smartif, which should let you do
{% if foo in bar %}.