diff options
Diffstat (limited to 'pystache')
-rw-r--r-- | pystache/locator.py | 16 |
1 files changed, 14 insertions, 2 deletions
diff --git a/pystache/locator.py b/pystache/locator.py index 9bb095a..15fd274 100644 --- a/pystache/locator.py +++ b/pystache/locator.py @@ -123,17 +123,29 @@ class Locator(object): return path - def find_file(self, template_file, search_dirs): + def find_file(self, file_name, search_dirs): """ Return the path to a template with the given file name. + Arguments: + + file_name: the file name of the template. + + search_dirs: the list of directories in which to search. + """ - return self._find_path_required(search_dirs, template_file) + return self._find_path_required(search_dirs, file_name) def find_name(self, template_name, search_dirs): """ Return the path to a template with the given name. + Arguments: + + template_name: the name of the template. + + search_dirs: the list of directories in which to search. + """ file_name = self.make_file_name(template_name) |