-
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
1 parent
6db0e0f
commit 60ff6fc
Showing
2 changed files
with
42 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,42 @@ | ||
# django-bootstrap-email | ||
|
||
## Usage | ||
|
||
1. Install | ||
|
||
```shell | ||
pip install django-bs-email | ||
``` | ||
|
||
2. Add to `INSTALLED_APPS` | ||
|
||
```python | ||
INSTALLED_APPS = [ | ||
# ... | ||
"django_bootstrap_email", | ||
] | ||
``` | ||
|
||
3. Use the template tag | ||
|
||
```html | ||
{% load bootstrap_email %} | ||
|
||
{% bootstrap_email %} | ||
<body class="bg-light"> | ||
<div class="container"> | ||
<div class="card my-10"> | ||
<div class="card-body"> | ||
<p> | ||
Hello World! | ||
</p> | ||
</div> | ||
</div> | ||
</div> | ||
</body> | ||
{% end_bootstrap_email %} | ||
``` | ||
|
||
And a complete HTML email will be output, which should render correctly across email clients: | ||
|
||
![Rendered HTML email example](example.png) |
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.