diff markup/plugin.py @ 149:537f819c547b trunk

`Template.generate()` now accepts the context data as keyword arguments, so that you don't have to import the `Context` class every time you want to pass data into a template.
author cmlenz
date Tue, 15 Aug 2006 21:59:07 +0000
parents 47bbd9d2a5af
children fb71efbd6ad4
line wrap: on
line diff
--- a/markup/plugin.py
+++ b/markup/plugin.py
@@ -75,5 +75,4 @@
             data.update(self.get_extra_vars())
         data.update(info)
 
-        ctxt = Context(**data)
-        return template.generate(ctxt)
+        return template.generate(**data)
Copyright (C) 2012-2017 Edgewall Software