# HG changeset patch # User cmlenz # Date 1156073746 0 # Node ID 128005041637bd723c7510d8ba63d29968a10157 # Parent ff4f0d89eef7d98ca3b0f854b7b1795f77e9132c Fix for #33. diff --git a/markup/template.py b/markup/template.py --- 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)