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.12.3.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.12.3-py3-none-any.whl (5.7 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: django_svg_sprite-2025.12.3.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.12.3.tar.gz
Algorithm Hash digest
SHA256 7dfd4410062d0c662ad3e655bf3c4766bb698822941f5477c04bb096da7eac19
MD5 8e944b6644c9142b9a6848ce9daf930b
BLAKE2b-256 782e8b5be36733ff86fb99644d65540fa8af8910b1e26da0d2cc646338ba760f

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for django_svg_sprite-2025.12.3-py3-none-any.whl
Algorithm Hash digest
SHA256 f56abc11a694c863772109f234ed9d5871f05daba25d37b936cfa4c3726fda60
MD5 c1c633f8bdfc9825833854da41417489
BLAKE2b-256 e7bdceac3f1aa46ebc5c81cc80dc58de4af36a7b7745b3688d1b7cba491d7c5e

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