summaryrefslogtreecommitdiff
path: root/pystache/init.py
diff options
context:
space:
mode:
authorChris Jerdonek <chris.jerdonek@gmail.com>2011-12-18 13:28:53 -0800
committerChris Jerdonek <chris.jerdonek@gmail.com>2011-12-18 13:28:53 -0800
commit1cb0d1f5564adb67f36a17ffffea4c9e2e6cb15e (patch)
tree5dc21d3174fe56786a91397476f8f38cef4d222c /pystache/init.py
parent5302934d567f2c537ba243969a437e9ded0339bf (diff)
downloadpystache-1cb0d1f5564adb67f36a17ffffea4c9e2e6cb15e.tar.gz
Completed issue #52: "Remove the context parameter from Template.__init__()"
Diffstat (limited to 'pystache/init.py')
-rw-r--r--pystache/init.py3
1 files changed, 2 insertions, 1 deletions
diff --git a/pystache/init.py b/pystache/init.py
index c821aed..4366f69 100644
--- a/pystache/init.py
+++ b/pystache/init.py
@@ -18,4 +18,5 @@ def render(template, context=None, **kwargs):
Return the given template string rendered using the given context.
"""
- return Template(template, context, **kwargs).render()
+ template = Template(template)
+ return template.render(context, **kwargs)