Thanks Armin. Actually, I am rendering a variable conditionally, it
should be rendered once and set to another variable or None
immediately. I used another workaround instead utilizing the pop()
method of a dict

On Oct 23, 1:23 pm, Armin Ronacher <[email protected]>
wrote:
> Hi,
>
> Voltron wrote:
> > How does one set the values of an existing dict variable passed to the
> > template?
>
> > {% my_dict['foo'] = "new value" %}
>
> Right, that doesn't work.  You will either have to add a function to the
> template that sets the key and the 'do' extension.  But why would you
> want to do that?  That sounds like something that does not belong into a
> template.
>
> Regards,
> Armin
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"pocoo-libs" 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/pocoo-libs?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to