#13745: Make extends allow select from multiple templates for themes fallback
------------------------------------------+---------------------------------
 Reporter:  gauss                         |       Owner:  nobody    
   Status:  new                           |   Milestone:            
Component:  Template system               |     Version:  SVN       
 Keywords:  extends multiple select list  |       Stage:  Unreviewed
Has_patch:  1                             |  
------------------------------------------+---------------------------------
 Attached patch allows us to easy make "multiple themed" site with fallback
 to default theme if current doesn't have requested template. Unit tests
 OK.

 Example code:

 {{{
 #!python

 cw = RequestContext(request, {
     'base_template': [ 'mytheme/b.html', 'default/b.html' ]
 })
 res = Template("""
 {% extends base_template %}
 {% block abc %}some content{% endblock %}
 {% block content %}some other content{% endblock %}'
 """, cw)

 }}}

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