Created
December 16, 2015 22:56
-
-
Save netoisc/b09de3ae62f543459549 to your computer and use it in GitHub Desktop.
Accessing the parent loop inside a bucle
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| <table> | |
| {% for row in table %} | |
| <tr> | |
| {% set rowloop = loop %} | |
| {% for cell in row %} | |
| <td id="cell-{{ rowloop.index }}-{{ loop.index }}">{{ cell }}</td> | |
| {% endfor %} | |
| </tr> | |
| {% endfor %} | |
| </table> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment