Merge pull request #5175 from basepi/context5161

Make explicit context overwrite kwargs for templating, Fix #5161
This commit is contained in:
David Boucha 2013-05-21 12:39:48 -07:00
commit 0c8e0fc569

View File

@ -38,7 +38,9 @@ def wrap_tmpl_func(render_str):
context=None, tmplpath=None, **kws):
if context is None:
context = {}
context.update(kws)
# We want explicit context to overwrite the **kws
kws.update(context)
context = kws
assert 'opts' in context
assert 'env' in context