diff options
Diffstat (limited to 'pystache')
-rw-r--r-- | pystache/loader.py | 5 | ||||
-rw-r--r-- | pystache/view.py | 2 |
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 |