#9093: Extend inclusion tag syntax to allow custom templates
------------------------------+---------------------------------------------
 Reporter:  [EMAIL PROTECTED]  |       Owner:  nobody    
   Status:  new               |   Milestone:  post-1.0  
Component:  Template system   |     Version:  1.0       
 Keywords:  inclusion         |       Stage:  Unreviewed
Has_patch:  0                 |  
------------------------------+---------------------------------------------
 Currently, inclusion tags are not very reusable since they are bound to a
 template at registration time.  For example, the only way to customize
 Djagno admin's `change_list_results.html` template is to ensure your
 template of the same name is found first.  I propose extending the
 inclusion tag syntax so that all inclusion tags can be called like so:

 {% show_results poll using "custom/results.html" %}

 If the "using ..." part is omitted, the template specified during
 registration will be used. (The keyword decided upon, 'using' in this
 case, is not important.)

 The only problem: this could break existing apps that use the keyword
 ('using' in this case) as a variable name. But we can make this behavior
 well-defined.

-- 
Ticket URL: <http://code.djangoproject.com/ticket/9093>
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
-~----------~----~----~----~------~----~------~--~---

Reply via email to