Changes between Initial Version and Version 1 of Ticket #16348
- Timestamp:
- Jun 26, 2011, 12:19:32 PM (13 years ago)
Legend:
- Unmodified
- Added
- Removed
- Modified
-
Ticket #16348 – Description
initial v1 1 1 I have the following scenario. (Django version: 1.2.3). 2 2 3 Template A {%include%}'s Template B with a {%with%} block, ie.3 Template A `{% include %}`s Template B with a `{% with %}` block: 4 4 5 {%with 'aaa' as a %} 6 {%include "template_b'%} 7 {%endwith%} 5 {{{ 6 {% with 'aaa' as a %} 7 {% include "template_b' %} 8 {% endwith %} 9 }}} 8 10 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'.11 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`. 10 12 11 13 Is this expected behaviour? or I am missing some thing here?