Index: third_party/pystache/src/init.py |
diff --git a/third_party/pystache/src/init.py b/third_party/pystache/src/init.py |
new file mode 100644 |
index 0000000000000000000000000000000000000000..38bb1f5a0e181f9ed9da88819aadf37bae03432f |
--- /dev/null |
+++ b/third_party/pystache/src/init.py |
@@ -0,0 +1,19 @@ |
+# encoding: utf-8 |
+ |
+""" |
+This module contains the initialization logic called by __init__.py. |
+ |
+""" |
+ |
+from pystache.parser import parse |
+from pystache.renderer import Renderer |
+from pystache.template_spec import 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) |