#3544: Fix {% include %} to allow recursive includes
----------------------------------------------------------------+-----------
Reporter: David Danier <[email protected]> |
Owner: nobody
Status: new |
Milestone:
Component: Template system |
Version: SVN
Resolution: |
Keywords: tplrf-patched
Stage: Accepted |
Has_patch: 0
Needs_docs: 1 |
Needs_tests: 1
Needs_better_patch: 1 |
----------------------------------------------------------------+-----------
Comment (by robhudson):
I may be missing a lot about the goal, but recursive template inclusion is
already possible, though perhaps not as efficient as would be nice? e.g.
by setting `{% with "comments.html" as template %}`, you can trigger the
use of `IncludeNode` instead of `ConstantIncludeNode` when calling `{%
include template %}` inside the `with` block.
For a more spelled out example, see:
http://blog.elsdoerfer.name/2008/01/22/recursion-in-django-templates/
--
Ticket URL: <http://code.djangoproject.com/ticket/3544#comment:17>
Django <http://code.djangoproject.com/>
The Web framework for perfectionists with deadlines.
--
You received this message because you are subscribed to the Google Groups
"Django updates" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to
[email protected].
For more options, visit this group at
http://groups.google.com/group/django-updates?hl=en.