Skip to main content

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

Project description

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.

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

django_svg_sprite-2025.10.28.tar.gz (3.9 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

django_svg_sprite-2025.10.28-py3-none-any.whl (5.7 kB view details)

Uploaded Python 3

File details

Details for the file django_svg_sprite-2025.10.28.tar.gz.

File metadata

  • Download URL: django_svg_sprite-2025.10.28.tar.gz
  • Upload date:
  • Size: 3.9 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/2.2.1 CPython/3.12.10 Windows/11

File hashes

Hashes for django_svg_sprite-2025.10.28.tar.gz
Algorithm Hash digest
SHA256 eee59b3e76135b62d67adef7b83363d88339624271ce71c9acee45e647db3cd8
MD5 07cbe1898e21c4e07590a991cb2dd004
BLAKE2b-256 a90bc3774b042db3dfd0ceade1034bbbfaa483a3f5d23b50283f99535bf8e2c6

See more details on using hashes here.

File details

Details for the file django_svg_sprite-2025.10.28-py3-none-any.whl.

File metadata

File hashes

Hashes for django_svg_sprite-2025.10.28-py3-none-any.whl
Algorithm Hash digest
SHA256 6f2e160e56b97a03c2823e69c1bac1b701bd8f559396eba28b06a4992baaa05a
MD5 71940f6474ae99823d6b3ad2a4aceed0
BLAKE2b-256 16eb074f8ba3557d8832d57ae4ce98931a015024c63118941b08b2a5295ced74

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page