I'm trying to create a django template generated table.
How do I do this:
<div id="holder" onclick="dostuff()">
<table id="table" bgcolor="{{s.color_hash}}">
<tbody>
{& for x in s.num_rows &}
<tr id="r">
{& for y in s.num_columns &}
<td id="c" height='{{s.height}}' width='{{s.width}}'></td>
{& endfor &}
</tr>
{& endfor &}
</tbody>
</table>
</div>
Where the <tr id="r">
I would like to have the number from x in {& for x in s.num_rows &}
.
I'd like the id to be that of the value from the for loops
Any clue?
Thank you