Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

added ability to provide a path to a template file #205

Open
wants to merge 5 commits into
base: master
Choose a base branch
from

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