Skip to content

Conversation

jgstew
Copy link

@jgstew jgstew commented Mar 10, 2020

allows pystache.render to take a file path string to a template file as the template argument. This should be safe because it would be hard to craft a valid template string that is also a valid path to a real file. (the logic only triggers if the argument is a string that points to a valid readable file)

I did run the pystache tests including the spec ones, all passed.

@jgstew
Copy link
Author

jgstew commented Mar 10, 2020

it occurs to me, I don't know if self should be in the function call to render_path or not.

@jgstew
Copy link
Author

jgstew commented Mar 10, 2020

kind of forgot that further commits to master would be included in the pull request automatically.

jgstew added 2 commits March 11, 2020 14:12
@jgstew
Copy link
Author

jgstew commented Mar 11, 2020

I reverted the extra changes I made, so now it is just the one change in the diff / pull request.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant