================
Simple django templatetag to display `SVG` icons in your django application.
Icon paths will loaded from a provided `JSON` file, formatted according the icomoon format.
More info: [Icomoon website](http://icomoon.io/)
Installation
------------
Installation from pypi via pip
pip install django-svg-icons
Configuration
-------------
In your django project add `svg_icons` to your installed apps and set the `SVG_ICONS_SOURCE_FILE` setting to your source file.
INSTALLED_APPS = [
# ...
'svg_icons',
]
SVG_ICONS_SOURCE_FILE = '/path/to/source_file.json'
Usage
-----
In your templates you can load the templatetag and start including your icons.
{% load svg_icons %}
{% icon 'icon_name' %}
The templatetag accepts some kwargs for icon configuration as well.
- **size** for setting both width and height
- **width** for only setting a specific width
- **height** for only setting a specific height
- **className** css classnames applied on the `<svg>` object
All kwargs are optional, when not provided the deaults are used.
{% icon 'icon_name' size=50 className="css classnames" %}
Todo
----
- Write tests
Metadata
Release files for django-svg-icons 0.1.2
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| django-svg-icons-0.1.2.tar.gz | 4.2 kB | Without provenance | Details for django-svg-icons-0.1.2.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| django_svg_icons-0.1.2-py2-none-any.whl | Python 2 | none | any | Details for django_svg_icons-0.1.2-py2-none-any.whl |
Total release size: 10.7 kB
Release files / django-svg-icons-0.1.2.tar.gz
| Download URL | django-svg-icons-0.1.2.tar.gz |
|---|---|
| Size | 4.2 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
de048d4cba49d0e30ed3412e1b4b9e29c6dcda03d0fce0c567ea4c155e7f7b6c
|
|
BLAKE2b-256 checksum How to use checksums |
f486d03d1d40e963422547c13dc22a488a08f681a30299f4c21c5402d1196e63
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
Release files / django_svg_icons-0.1.2-py2-none-any.whl
| Download URL | django_svg_icons-0.1.2-py2-none-any.whl |
|---|---|
| Size | 6.5 kB |
| Tags | Python 2 |
|
SHA-256 checksum How to use checksums |
ea9cb3ae499bcecb973ec596a84584d4f9b12dd2ea8612134d4e6a6cf4c07d0c
|
|
BLAKE2b-256 checksum How to use checksums |
7108295fa4132e85d449aa229bd5a65ba38d16efefc6d904d9169998be1aabc9
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
Security for django-svg-icons 0.1.2
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.