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
-
Add
django_svg_spriteto yourINSTALLED_APPSsetting like this:INSTALLED_APPS = [ ..., 'django_svg_sprite', ]
-
Set the
SVG_SPRITEsetting to the SVG sprite file in your static files to be used, e.g.:SVG_SPRITE = 'bootstrap-icons.svg'
-
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
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
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
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
7dfd4410062d0c662ad3e655bf3c4766bb698822941f5477c04bb096da7eac19
|
|
| MD5 |
8e944b6644c9142b9a6848ce9daf930b
|
|
| BLAKE2b-256 |
782e8b5be36733ff86fb99644d65540fa8af8910b1e26da0d2cc646338ba760f
|
File details
Details for the file django_svg_sprite-2025.12.3-py3-none-any.whl.
File metadata
- Download URL: django_svg_sprite-2025.12.3-py3-none-any.whl
- Upload date:
- Size: 5.7 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: poetry/2.2.1 CPython/3.12.10 Windows/11
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
f56abc11a694c863772109f234ed9d5871f05daba25d37b936cfa4c3726fda60
|
|
| MD5 |
c1c633f8bdfc9825833854da41417489
|
|
| BLAKE2b-256 |
e7bdceac3f1aa46ebc5c81cc80dc58de4af36a7b7745b3688d1b7cba491d7c5e
|