* cc: newmaniese@… (added)
* ui_ux: => 0
* easy: => 0
--
Ticket URL: <https://code.djangoproject.com/ticket/3544#comment:26>
Django <https://code.djangoproject.com/>
The Web framework for perfectionists with deadlines.
Comment (by David Danier <david.danier@…>):
Needed this again and decided, that you currently can use
{{{
{% with template_name="file/to_include.html" %}{% include template_name
%}{% endwith %}
}}}
as an easy workaround.
--
Ticket URL: <https://code.djangoproject.com/ticket/3544#comment:27>
Comment (by camilonova):
We should include this patch or document the workaround, it is needed when
you want to render information in a tree format, like the comments
--
Ticket URL: <https://code.djangoproject.com/ticket/3544#comment:28>
Comment (by prestontimmons):
I added a patch to #16147.
It also addresses the problem of this patch, and lets includes happen
recursively.
--
Ticket URL: <https://code.djangoproject.com/ticket/3544#comment:29>
* cc: cvrebert (added)
--
Ticket URL: <https://code.djangoproject.com/ticket/3544#comment:30>
Comment (by anonymous):
Any progress?
It seems quite demanded feature as soon as you deal with hierarchical
trees rendering.
--
Ticket URL: <https://code.djangoproject.com/ticket/3544#comment:31>
* needs_better_patch: 1 => 0
* has_patch: 0 => 1
* needs_tests: 1 => 0
* needs_docs: 1 => 0
Comment:
Updated the patch and added a pull request for review.
https://github.com/django/django/pull/920
--
Ticket URL: <https://code.djangoproject.com/ticket/3544#comment:32>
Comment (by FunkyBob):
Whilst I agree we no longer need the separate classes, as we have the
caching template loader to cover the performance gain, I do question the
need for the "quiet" flag.
Under what circumstances do you seen someone wanting to do an include on a
template that may not exist?
--
Ticket URL: <https://code.djangoproject.com/ticket/3544#comment:33>
* cc: FunkyBob (added)
Comment:
I've made a PR for a simpler patch for this:
https://github.com/django/django/pull/1528
--
Ticket URL: <https://code.djangoproject.com/ticket/3544#comment:34>
* stage: Accepted => Ready for checkin
--
Ticket URL: <https://code.djangoproject.com/ticket/3544#comment:35>
* status: new => closed
* resolution: => fixed
Comment:
In [changeset:"e2f06226ea4a38377cdb69f2f5768e4e00c2d88e"]:
{{{
#!CommitTicketReference repository=""
revision="e2f06226ea4a38377cdb69f2f5768e4e00c2d88e"
Improved {% include %} implementation
Merged BaseIncludeNode, ConstantIncludeNode and Include node.
This avoids raising TemplateDoesNotExist at parsing time, allows recursion
when passing a literal template name, and should make TEMPLATE_DEBUG
behavior
consistant.
Thanks loic84 for help with the tests.
Fixed #3544, fixed #12064, fixed #16147
}}}
--
Ticket URL: <https://code.djangoproject.com/ticket/3544#comment:36>