On 7 June 2010 18:13, Jacob Kaplan-Moss <ja...@jacobian.org> wrote:
> On Mon, Jun 7, 2010 at 5:03 AM, Marco Louro <mlo...@gmail.com> wrote:
>
>> I'd like to propose adding a tag that includes a template with clean
>> context, but can accept parameters that will be added to that
>> context.
>
> Is there a reason to do this as a separate tag? Why not just::
>
>    {% include "some/template.html" with foo=bar baz=spam %}
Personally, I would expect this to extend the current context with
"foo" and "bar", render the include and restore foo, bar to old values
(if any). Using a clean context instead is a bit non-obvious to me.

-- 
Łukasz Rekucki

-- 
You received this message because you are subscribed to the Google Groups 
"Django developers" group.
To post to this group, send email to django-develop...@googlegroups.com.
To unsubscribe from this group, send email to 
django-developers+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/django-developers?hl=en.

Reply via email to