summaryrefslogtreecommitdiff
path: root/pystache
diff options
context:
space:
mode:
authorChris Jerdonek <chris.jerdonek@gmail.com>2011-12-17 12:10:40 -0800
committerChris Jerdonek <chris.jerdonek@gmail.com>2011-12-17 12:10:40 -0800
commit76dcc8ed0c8745c648f0508d61497945d182edaa (patch)
treef142207f104895a490b294ce651c2426dd2c8900 /pystache
parentf54f0ea792c57d83b46b5e3173e05c6043a0827f (diff)
downloadpystache-76dcc8ed0c8745c648f0508d61497945d182edaa.tar.gz
View class now relies on the Loader class's default template extension.
Diffstat (limited to 'pystache')
-rw-r--r--pystache/loader.py5
-rw-r--r--pystache/view.py2
2 files changed, 5 insertions, 2 deletions
diff --git a/pystache/loader.py b/pystache/loader.py
index 1233b2e..9e59774 100644
--- a/pystache/loader.py
+++ b/pystache/loader.py
@@ -8,6 +8,9 @@ This module provides a Loader class.
import os
+DEFAULT_EXTENSION = 'mustache'
+
+
class Loader(object):
def __init__(self, search_dirs=None, encoding=None, extension=None):
@@ -21,7 +24,7 @@ class Loader(object):
"""
if extension is None:
- extension = 'mustache'
+ extension = DEFAULT_EXTENSION
if search_dirs is None:
search_dirs = os.curdir # i.e. "."
diff --git a/pystache/view.py b/pystache/view.py
index 946ee25..840c8b2 100644
--- a/pystache/view.py
+++ b/pystache/view.py
@@ -19,7 +19,7 @@ class View(object):
template_path = None
template = None
template_encoding = None
- template_extension = 'mustache'
+ template_extension = None
# A function that accepts a single template_name parameter.
_load_template = None