summaryrefslogtreecommitdiff
path: root/pystache/__init__.py
diff options
context:
space:
mode:
authordbr <dbr.onix@gmail.com>2009-10-30 02:05:59 +0800
committerChris Wanstrath <chris@ozmm.org>2009-10-31 01:20:56 +0800
commit40d09a12bf6fea33775b1e5cdc2af5438fd67cde (patch)
tree6405c7969d07a44270281c4131635649c04544af /pystache/__init__.py
parentdbb50631d3daa99965cf726df46e06a7af256b9f (diff)
downloadpystache-40d09a12bf6fea33775b1e5cdc2af5438fd67cde.tar.gz
Pystash class with static method seems redundant,
change it to a single function. Also update the tests
Diffstat (limited to 'pystache/__init__.py')
-rw-r--r--pystache/__init__.py6
1 files changed, 2 insertions, 4 deletions
diff --git a/pystache/__init__.py b/pystache/__init__.py
index c838c7c..f5caf36 100644
--- a/pystache/__init__.py
+++ b/pystache/__init__.py
@@ -1,6 +1,4 @@
from pystache.template import Template
-class Pystache(object):
- @staticmethod
- def render(template, context={}):
- return Template(template, context).render()
+def render(template, context={}):
+ return Template(template, context).render()