Skip to content

Commit

Permalink
Renamed custom to spec inside SpecLoader.load().
Browse files Browse the repository at this point in the history
  • Loading branch information
cjerdonek committed Mar 31, 2012
1 parent f6b3670 commit 8f8fd6c
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions pystache/template_spec.py
Expand Up @@ -184,20 +184,20 @@ def get_template_path(self, view):

return path

def load(self, custom):
def load(self, spec):
"""
Find and return the template associated to a TemplateSpec instance.
Returns the template as a unicode string.
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)

0 comments on commit 8f8fd6c

Please sign in to comment.