summaryrefslogtreecommitdiff
path: root/pystache/init.py
diff options
context:
space:
mode:
authorChris Jerdonek <chris.jerdonek@gmail.com>2012-04-03 18:42:21 -0700
committerChris Jerdonek <chris.jerdonek@gmail.com>2012-04-03 18:42:21 -0700
commita4d763d54d83d4cbc9c254c897165563b119f7e8 (patch)
treeee134c32eec215ac28dcb00d0748dcb0bb9887be /pystache/init.py
parenta06fd4233d55ea317ea03b81c98b149e3d5b1364 (diff)
parent368f0dfd2f61b0e4a92d530e033eaec4a6fcfeb9 (diff)
downloadpystache-a4d763d54d83d4cbc9c254c897165563b119f7e8.tar.gz
Merge branch 'development' to 'master': staging version 0.5.0-rc.
Diffstat (limited to 'pystache/init.py')
-rw-r--r--pystache/init.py21
1 files changed, 21 insertions, 0 deletions
diff --git a/pystache/init.py b/pystache/init.py
new file mode 100644
index 0000000..b285a5c
--- /dev/null
+++ b/pystache/init.py
@@ -0,0 +1,21 @@
+# encoding: utf-8
+
+"""
+This module contains the initialization logic called by __init__.py.
+
+"""
+
+from pystache.renderer import Renderer
+from pystache.template_spec import TemplateSpec
+
+
+__all__ = ['render', 'Renderer', 'TemplateSpec']
+
+
+def render(template, context=None, **kwargs):
+ """
+ Return the given template string rendered using the given context.
+
+ """
+ renderer = Renderer()
+ return renderer.render(template, context, **kwargs)