summaryrefslogtreecommitdiff
path: root/pystache/specloader.py
diff options
context:
space:
mode:
Diffstat (limited to 'pystache/specloader.py')
-rw-r--r--pystache/specloader.py3
1 files changed, 3 insertions, 0 deletions
diff --git a/pystache/specloader.py b/pystache/specloader.py
index 3cb0f1a..3a77d4c 100644
--- a/pystache/specloader.py
+++ b/pystache/specloader.py
@@ -55,6 +55,9 @@ class SpecLoader(object):
Find and return the path to the template associated to the instance.
"""
+ if spec.template_path is not None:
+ return spec.template_path
+
dir_path, file_name = self._find_relative(spec)
locator = self.loader._make_locator()