Changes between Initial Version and Version 1 of Ticket #16348


Ignore:
Timestamp:
Jun 26, 2011, 12:19:32 PM (13 years ago)
Author:
Aymeric Augustin
Comment:

Fixed formatting (please check the preview before submitting a bug).

Legend:

Unmodified
Added
Removed
Modified
  • Ticket #16348 – Description

    initial v1  
    11I have the following scenario.  (Django version: 1.2.3).
    22
    3 Template A {%include%}'s Template B with a {%with%} block, ie.
     3Template A `{% include %}`s Template B with a `{% with %}` block:
    44
    5 {%with 'aaa' as a %}
    6  {%include "template_b'%}
    7 {%endwith%}
     5{{{
     6{% with 'aaa' as a %}
     7 {% include "template_b' %}
     8{% endwith %}
     9}}}
    810
    9 Any direct references to 'a' in template_b works just fine, including working with filters. However, 'a' does not appear to be included in the Request object's GET or POST. This means that, for example, any custom context processors attached to Template A does not see the variable 'a'.
     11Any direct references to 'a' in template_b works just fine, including working with filters. However, `a` does not appear to be included in the Request object's GET or POST. This means that, for example, any custom context processors attached to Template A does not see the variable `a`.
    1012
    1113Is this expected behaviour? or I am missing some thing here?
Back to Top