#11242: templates: block tag can be nested in if but not in ifequal
------------------------------------------+---------------------------------
 Reporter:  [email protected]     |       Owner:  nobody    
   Status:  new                           |   Milestone:            
Component:  Template system               |     Version:  SVN       
 Keywords:  template, block, if, ifequal  |       Stage:  Unreviewed
Has_patch:  0                             |  
------------------------------------------+---------------------------------
 (Applies to revision 10865)

 Sometimes when template {{{B}}} extends template {{{A}}}, it can't
 redefine block contents.

 The following does not work ('bbb' is displayed or nothing, depending on
 {{{a}}} and {{{b}}})

  * a.html
 {{{
 {% ifequal a b %}
  {% block X %} zzz {% endblock %}
 {% endif %}
 }}}

  * b.html
 {{{
 {% extends "a.html" %}
 {% block X %} bbb {% endblock %}
 }}}

 While this does ({{{ifequal}}} replaced with {{{if}}}):

  * a.html
 {{{
 {% if a %}
  {% block X %} zzz {% endblock %}
 {% endif %}
 }}}

  * b.html
 {{{
 {% extends "a.html" %}
 {% block X %} bbb {% endblock %}
 }}}

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