I have the following html code:
<table>
<thead>
<tr>
<th>Counter</th>
</tr>
</thead>
<tbody>
<tr>
{% set count = 1 %}
{% for i in range(5) %}
<td>{{ count }}</td>
{% set count = count + 1 %}
{% endfor %}
</tr>
</tbody>
</table>
I want to create a table that displays one number in each column. These numbers should be incremented using this loop. However, it shows only the number 1 in each column like this:
Counter
1 1 1 1 1
To me, it seems as if this error could only occour, if I set the count variable as 1 INSIDE the for loop, which I didn't do. Can someone help me out? I have been trying to fix this for hours