Skip to content

Commit

Permalink
Update renderer.py
Browse files Browse the repository at this point in the history
  • Loading branch information
jgstew authored Mar 10, 2020
1 parent d6bf5b0 commit 08d7d57
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions pystache/renderer.py
Original file line number Diff line number Diff line change
Expand Up @@ -452,6 +452,7 @@ def render(self, template, *context, **kwargs):
"""
if is_string(template) and os.path.isfile(template) and os.access(template, os.R_OK):
# should self be the first arg in the function call?
return self.render_path(self, template, *context, **kwargs)
if is_string(template):
return self._render_string(template, *context, **kwargs)
Expand Down

0 comments on commit 08d7d57

Please sign in to comment.