Commit 729b2e2c by Eric Florenzano

Made the same changes to the module-level render method.

parent 5ce9ac22
from pystache.template import Template
from pystache.view import View
def render(template, context={}, **kwargs):
context = context.copy()
for key in kwargs:
context[key] = kwargs[key]
def render(template, context=None, **kwargs):
context = context and context.copy() or {}
context.update(kwargs)
return Template(template, context).render()
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