Opened 13 years ago

Closed 13 years ago

#14992 closed (duplicate)

Template recursion

Reported by: IsakovAN Owned by: nobody
Component: Template system Version: dev
Severity: Keywords:
Cc: Triage Stage: Unreviewed
Has patch: no Needs documentation: no
Needs tests: no Patch needs improvement: no
Easy pickings: no UI/UX: no

Description

I'm trying to implement recursion of the template:

test.html:
{% if some.condition %}
Some stuff
{% include test.html with x=... %}

{% endif %}

Almost all works fine but...
"maximum recursion depth exceeded while calling a Python object"

It seems that "include" have been parsed irrespective of "if" condition. I think this shoud be fixed in because of:

  1. Performance
  2. Recursion

Change History (1)

comment:1 by Łukasz Rekucki, 13 years ago

Resolution: duplicate
Status: newclosed

Duplicate of #3544.

Note: See TracTickets for help on using tickets.
Back to Top