Last active
November 19, 2021 09:05
-
-
Save sauloperez/efe061c54d5ece5d9d4eb60ef82b096a to your computer and use it in GitHub Desktop.
Render and open mail template in browser
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Then, open it in your default $BROWSER | |
$ python -m webbrowser -t tacto-fastapi-v2/tests/rendered.html |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# First render the mail template | |
file = open(f"tests/rendered.html", "w") | |
file.write(template_body) | |
file.close() |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment