I noticed jinja2/defaults.py sets "dict" to "lambda **kw: kw" in
its DEFAULT_NAMESPACE. Is there a reason why it's not just set to dict?
I'd like to do {{ url_for(request.endpoint, **dict(request.view_args,
foo=bar) }} in a template (overriding any "foo" value in the current page's
view_args with "bar"), but I can't with the phony dict function.
Thanks!
Josh
--
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.