According to the documentation on for loops, you can access some special variables inside of a for loop like "loop.index". Is there a way to specify which loop we want to refer to?
For example say we have a double for loop like so:
{% for row in rows %} --OUTER LOOP
<tr>
{% for column in Columns %} -- INNER LOOP
<td>{{ row[column] }} {{loop.index}}</td>
{% endfor %}
</tr>
{% endfor %}
Say I want {{loop.index}} to refer to the OUTER LOOP or the INNER LOOP. How can I distinguish which one it will refer to? Is this possible?