Commit d732a8f4 by Chris Jerdonek

Changed the View class to use the new Context.create().

parent 7492f81a
......@@ -43,15 +43,11 @@ class View(object):
if template is not None:
self.template = template
_context = Context(self)
if context:
_context.push(context)
if kwargs:
_context.push(kwargs)
context = Context.create(self, context, **kwargs)
self._partials = partials
self.context = _context
self.context = context
def _get_renderer(self):
if self._renderer is None:
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment