A Django template tag for easy use of SVG sprites in templates. https://tmb.codeberg.page/django-svg-sprite/
Find a file
Tobias Bölz 83edcb85ac
All checks were successful
Update Docs / docs (push) Successful in 32s
Python 3.14 support (#17)
See #13.

Reviewed-on: #17
Co-authored-by: Tobias Bölz <tobias@boelz.eu>
Co-committed-by: Tobias Bölz <tobias@boelz.eu>
2025-10-12 15:27:57 +02:00
.forgejo/workflows Lint and test with Forgejo Actions (#2) 2025-05-11 18:15:20 +02:00
.githooks Pre-commit hook (#12) 2025-10-12 11:56:53 +02:00
django_svg_sprite Settings and template tags documentation (#9) 2025-05-30 14:40:06 +02:00
docs Development documentation (#16) 2025-10-12 15:12:52 +02:00
example Example project (#5) 2025-05-17 19:44:04 +02:00
.flake8 Example project (#5) 2025-05-17 19:44:04 +02:00
.gitignore Initial commit 2025-05-09 16:52:20 +02:00
CHANGELOG.md Python 3.14 support (#17) 2025-10-12 15:27:57 +02:00
LICENSE Code added 2025-05-09 17:42:00 +02:00
mkdocs.yml Pre-commit hook (#12) 2025-10-12 11:56:53 +02:00
noxfile.py Python 3.14 support (#17) 2025-10-12 15:27:57 +02:00
poetry.lock Pre-commit hook (#12) 2025-10-12 11:56:53 +02:00
pyproject.toml Python 3.14 support (#17) 2025-10-12 15:27:57 +02:00
README.md Development documentation (#16) 2025-10-12 15:12:52 +02:00

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:

    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.:

    SVG_SPRITE = 'bootstrap-icons.svg'
    
  3. Use the tag in your template, e.g.:

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

See settings and template tags documentation for details.

Commercial support

Commercial support, including feature development, is available. Get in contact.

License

This project is licensed under the MIT license.