Skip to content
Myr

Update docs/templates.rst

Before adoption: this commit came in with the history the project adopted, so no landing records it.

Loop (recursive) --> Another loop -> loop(...)

authored by Dimitris Leventeas · committed by Dimitris Leventeas · parent 21a2010 · Browse files · 1 file+4 added−0 removed
This commit

State

Before adoption: this commit came in with the history the project adopted, so no landing records it.

Diff stats

1 file+4 added−0 removed

  • other:+4 added−0 removed

1 file+4 added−0 removed

modified:docs/templates.rst+4 added
586 unmodified lines
587 {%- endif %}</li>588 {%- endfor %}589 </ul>590591The `loop` variable always refers to the closest (innermost) loop. If we592have more than one levels of loops, we can rebind the variable `loop` by593writing `{% set outer_loop = loop %}` after the loop that we want to594use recursively. Then, we can call it using `{{ outer_loop(...) }}`595596If597~~598
787 unmodified lines