comparison 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
comparison
equal deleted inserted replaced
148:dcc9dc25bc59 149:537f819c547b
73 data = {'ET': ET} 73 data = {'ET': ET}
74 if self.get_extra_vars: 74 if self.get_extra_vars:
75 data.update(self.get_extra_vars()) 75 data.update(self.get_extra_vars())
76 data.update(info) 76 data.update(info)
77 77
78 ctxt = Context(**data) 78 return template.generate(**data)
79 return template.generate(ctxt)
Copyright (C) 2012-2017 Edgewall Software