Skip to content

Commit

Permalink
Add basic Readme instructions
Browse files Browse the repository at this point in the history
  • Loading branch information
jhthompson committed Apr 10, 2024
1 parent 6db0e0f commit 60ff6fc
Show file tree
Hide file tree
Showing 2 changed files with 42 additions and 0 deletions.
42 changes: 42 additions & 0 deletions README.md
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)
Binary file added example.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.

0 comments on commit 60ff6fc

Please sign in to comment.