Update docs/templates.rst

Docs: When we use a loop recursively, loop refers only to the innermost (closest) loop.