#9093: Extend inclusion tag syntax to allow custom templates
---------------------------------------------+------------------------------
Reporter: [email protected] | Owner: nobody
Status: new | Milestone:
Component: Template system | Version: 1.0
Resolution: | Keywords: inclusion
Stage: Design decision needed | Has_patch: 1
Needs_docs: 0 | Needs_tests: 0
Needs_better_patch: 0 |
---------------------------------------------+------------------------------
Comment (by andrewbadr):
Even if you're willing to write multiple inclusion tags for some finite
number of templates that take the same context, you have to write a
wrapper around the context function. (Django won't let you use the same
function for multiple inclusion tags.) One possible workaround might be to
do {% with inclusion_template as 'whatever'%}{% show_result %}{% endwith
%} and show_result would render a template that `include`s the
`inclusion_template` that it gets from the context.
--
Ticket URL: <http://code.djangoproject.com/ticket/9093#comment:6>
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
-~----------~----~----~----~------~----~------~--~---