summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorChris Jerdonek <chris.jerdonek@gmail.com>2012-03-31 10:39:29 -0700
committerChris Jerdonek <chris.jerdonek@gmail.com>2012-03-31 10:39:29 -0700
commit8f8fd6c45821d2a46d161e47183edf8be343e445 (patch)
treefdcfde2b7eb7df84c139b3b8752baa2cda8d3778
parentf6b36707e2b0c5fed1a59f096f750bad70668272 (diff)
downloadpystache-8f8fd6c45821d2a46d161e47183edf8be343e445.tar.gz
Renamed custom to spec inside SpecLoader.load().
-rw-r--r--pystache/template_spec.py12
1 files changed, 6 insertions, 6 deletions
diff --git a/pystache/template_spec.py b/pystache/template_spec.py
index e31b71f..e657d42 100644
--- a/pystache/template_spec.py
+++ b/pystache/template_spec.py
@@ -184,7 +184,7 @@ class SpecLoader(object):
return path
- def load(self, custom):
+ def load(self, spec):
"""
Find and return the template associated to a TemplateSpec instance.
@@ -192,12 +192,12 @@ class SpecLoader(object):
Arguments:
- custom: a TemplateSpec instance.
+ spec: a TemplateSpec instance.
"""
- if custom.template is not None:
- return self.loader.unicode(custom.template, custom.template_encoding)
+ if spec.template is not None:
+ return self.loader.unicode(spec.template, spec.template_encoding)
- path = self.get_template_path(custom)
+ path = self.get_template_path(spec)
- return self.loader.read(path, custom.template_encoding)
+ return self.loader.read(path, spec.template_encoding)