#11989: Allow @register.inclusion_tag to take a template as well as a template 
name
-------------------------------+--------------------------------------------
   Reporter:  jdunck           |                Owner:  nobody    
     Status:  new              |            Milestone:            
  Component:  Template system  |              Version:  1.1       
   Keywords:                   |                Stage:  Unreviewed
  Has_patch:  0                |           Needs_docs:  1         
Needs_tests:  1                |   Needs_better_patch:  1         
-------------------------------+--------------------------------------------
 Sometimes, I want the convenience of an inclusion_tag without specifying
 an external template.  I can't use simple_tag because I need context
 access.

 @inclusion_tag allows either a template name or an iterable of template
 names.

 The attach patch allows a template to be given directly, as well.

 I noticed @inclusion_tag doesn't seem to be currently tested, and this
 patch doesn't include tests.  Where should @inclusion_tag tests live?

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