summaryrefslogtreecommitdiff
path: root/pystache/locator.py
diff options
context:
space:
mode:
Diffstat (limited to 'pystache/locator.py')
-rw-r--r--pystache/locator.py7
1 files changed, 7 insertions, 0 deletions
diff --git a/pystache/locator.py b/pystache/locator.py
index 2189cf2..9bb095a 100644
--- a/pystache/locator.py
+++ b/pystache/locator.py
@@ -123,6 +123,13 @@ class Locator(object):
return path
+ def find_file(self, template_file, search_dirs):
+ """
+ Return the path to a template with the given file name.
+
+ """
+ return self._find_path_required(search_dirs, template_file)
+
def find_name(self, template_name, search_dirs):
"""
Return the path to a template with the given name.