changeset 173:ae5d2f4a378a

Fix for #33.
author cmlenz
date Sun, 20 Aug 2006 11:35:46 +0000
parents 4b4e80b2b0b5
children 19c669eadc2b
files markup/template.py
diffstat 1 files changed, 2 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- a/markup/template.py
+++ b/markup/template.py
@@ -875,6 +875,8 @@
         if args:
             assert len(args) == 1
             ctxt = args[0]
+            if ctxt is None:
+                ctxt = Context(**kwargs)
             assert isinstance(ctxt, Context)
         else:
             ctxt = Context(**kwargs)
Copyright (C) 2012-2017 Edgewall Software