Django-infinite-icons will help you to render SVG icons.
Project description
Django-infinite-icons will help you to render SVG icons in your template & you can alter its width ,height and viewport without hassle.
This project is inspired by FeatherIcons and the author colebmis.
Installation
you can get django-infinite-icons by using pip.
$ pip install django-infinite-icons
To enable widget_tweaks in your project you need to add it to INSTALLED_APPS in your projects settings.py file:
INSTALLED_APPS = [
...
'django_infinite_icons',
...
]
Example Usage for SVG render
{% load infinite %}
{% icon_render 'activity.svg' width='45' %}
{% icon_render 'activity.svg' height='45' width='45' %}
{% icon_render 'activity.svg' height='45' width='45' viewbox='0 0 20 20' %}
Example Usage load as static file
{% load infinite %}
{% icon_render 'activity.svg' %}
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 Distributions
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_infinite_icons-0.1-py3-none-any.whl.
File metadata
- Download URL: django_infinite_icons-0.1-py3-none-any.whl
- Upload date:
- Size: 136.7 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/1.13.0 pkginfo/1.5.0.1 requests/2.18.4 setuptools/40.6.3 requests-toolbelt/0.9.1 tqdm/4.31.1 CPython/3.6.7
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
763f158943e3d6cebad557cc42ff6f1dc3aa5758fc7101d5ba064fece126719f
|
|
| MD5 |
1d59d36ef0e4af9eb28ae12607eed738
|
|
| BLAKE2b-256 |
23c83c5d758ed6fd1aaa291a8dcf0ba575a84b38aeaf96154c526030508b8422
|