Metadata-Version: 2.1
Name: django-bs-email
Version: 0.2.1
Summary: Django application with Bootstrap email template tag.
Author: Jeremy Thompson
License: MIT License
        
        Copyright (c) 2024 Jeremy Thompson
        
        Permission is hereby granted, free of charge, to any person obtaining a copy
        of this software and associated documentation files (the "Software"), to deal
        in the Software without restriction, including without limitation the rights
        to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
        copies of the Software, and to permit persons to whom the Software is
        furnished to do so, subject to the following conditions:
        
        The above copyright notice and this permission notice shall be included in all
        copies or substantial portions of the Software.
        
        THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
        IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
        FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
        AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
        LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
        OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
        SOFTWARE.
        
Project-URL: Homepage, https://github.com/jhthompson/django-bootstrap-email
Project-URL: Changelog, https://github.com/jhthompson/django-bootstrap-email/releases
Project-URL: Issues, https://github.com/jhthompson/django-bootstrap-email/issues
Project-URL: CI, https://github.com/jhthompson/django-bootstrap-email/actions
Requires-Python: >=3.9
Description-Content-Type: text/markdown
License-File: LICENSE
Requires-Dist: bootstrap-email
Requires-Dist: Django

# 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](https://raw.githubusercontent.com/jhthompson/django-bootstrap-email/main/example.png)
