Skip to content

Instantly share code, notes, and snippets.

@sauloperez
Last active November 19, 2021 09:05
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save sauloperez/efe061c54d5ece5d9d4eb60ef82b096a to your computer and use it in GitHub Desktop.
Save sauloperez/efe061c54d5ece5d9d4eb60ef82b096a to your computer and use it in GitHub Desktop.
Render and open mail template in browser
# Then, open it in your default $BROWSER
$ python -m webbrowser -t tacto-fastapi-v2/tests/rendered.html
# 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