summaryrefslogtreecommitdiff
path: root/pystache
diff options
context:
space:
mode:
authorChris Jerdonek <chris.jerdonek@gmail.com>2012-07-23 07:06:03 -0700
committerChris Jerdonek <chris.jerdonek@gmail.com>2012-07-23 07:06:03 -0700
commit440064b0bec6ce4afe5874f22f345c583793cc5d (patch)
treeedc095e8da71c65dd01fb05fef4e30e4b55cd359 /pystache
parent06fa9e75aec3dc60ca589cd2b765075d4b053101 (diff)
downloadpystache-440064b0bec6ce4afe5874f22f345c583793cc5d.tar.gz
Adjust Locator.find_file() docstring and argument names.
Diffstat (limited to 'pystache')
-rw-r--r--pystache/locator.py16
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)