Opened 14 years ago
Closed 14 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:
- Performance
- Recursion
Note:
See TracTickets
for help on using tickets.
Duplicate of #3544.