-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
1 changed file
with
16 additions
and
0 deletions.
There are no files selected for viewing
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,16 @@ | ||
# Flask Mail Template Tester | ||
This package provides a faster way to inject data into flask mail templates and send them to a recipient for testing. | ||
|
||
# Setup | ||
`pip install flask-mail-template-tester` | ||
`pip freeze > requirements.txt` | ||
|
||
### using environment variables (recommended) | ||
`export TEMPLATE_DATA_FILE="path/to/some/data.py"` | ||
- note: the default data file is set to look at the current working directory + /templates/test_data.py. This is meant to allow you to write a script to test all your templates with one central and standard set of data. | ||
`export TEMPLATE_EMAIL="[email protected]"` | ||
`flask template-test name-of-template.html` | ||
|
||
### using cli arguments | ||
`flask template-test name-of-template.html -d "path/to/some/data.py" -e "[email protected]"` | ||
|