Metadata-Version: 2.3
Name: django-svg-sprite
Version: 0.2.0
Summary: A Django template tag for easy use of SVG sprites in templates.
License: MIT
Author: Tobias Bölz
Author-email: tobias@boelz.eu
Requires-Python: >=3.9,<4.0
Classifier: Environment :: Web Environment
Classifier: Framework :: Django
Classifier: Intended Audience :: Developers
Classifier: License :: OSI Approved :: MIT License
Classifier: Operating System :: OS Independent
Classifier: Programming Language :: Python
Classifier: Programming Language :: Python :: 3
Classifier: Programming Language :: Python :: 3 :: Only
Classifier: Programming Language :: Python :: 3.9
Classifier: Programming Language :: Python :: 3.10
Classifier: Programming Language :: Python :: 3.11
Classifier: Programming Language :: Python :: 3.12
Classifier: Programming Language :: Python :: 3.13
Classifier: Topic :: Internet :: WWW/HTTP
Classifier: Topic :: Internet :: WWW/HTTP :: Dynamic Content
Requires-Dist: django (>=4.2)
Project-URL: Homepage, https://tmb.codeberg.page/django-svg-sprite/
Project-URL: Repository, https://git.boelz.eu/tmb/django-svg-sprite
Project-URL: changelog, https://tmb.codeberg.page/django-svg-sprite/changelog/
Project-URL: issues, https://git.boelz.eu/tmb/django-svg-sprite/issues
Description-Content-Type: text/markdown

# django-svg-sprite

A Django template tag for easy use of SVG sprites in templates.

## Quick start

1. Add `django_svg_sprite` to your `INSTALLED_APPS` setting like this:

    ```python
    INSTALLED_APPS = [
        ...,
        'django_svg_sprite',
    ]
    ```

2. Set the `SVG_SPRITE` setting to the SVG sprite file in your static files to be used, e.g.:

    ```python
    SVG_SPRITE = 'bootstrap-icons.svg'
    ```

3. Use the tag in your template, e.g.:

    ```django
    {% load svg_sprite %}
    {% svg_sprite 'hand-thumbs-up' fill='yellow' class='bi' %}
    ```

See [settings](https://tmb.codeberg.page/django-svg-sprite/settings/) and [template tags documentation](https://tmb.codeberg.page/django-svg-sprite/templatetags/) for details.

## License

This project is licensed under the MIT license.

