Django Lucide Icons
Project description
Django Lucide Icons
This is a Django template tag that allows you to use Lucide Icons in your Django templates.
Installation
To install the package, simply run:
pip install django-lucide-icons
Usage
To use the template tag, add the following line to your Django project's settings.py file:
LUCIDE_ICONS_DIR = "/path/to/your/icons/directory"
The LUCIDE_ICONS_DIR variable should be set to the directory where you want to store the Lucide icons.
Then, you can use the lucide
template tag in your Django templates to display Lucide icons. For example, to display the "home" icon, you can use the following code:
{% load lucide_tags %} {% lucide "home" %}
The lucide
template tag takes a single argument, which is the name of the Lucide icon you want to display.
It returns the SVG code of the icon as a string.
Since the plain SVG is rendered, it might make sense to wrap it in a "span" or "div" element to size it properly. Alternative approaches are welcome. Just submit an issue or a pull request.
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
Built Distribution
Hashes for django_lucide_icons-0.1.0.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | 3561ceed04b43aa0f22325004aa7443b0bdcc9d25c9693b3505c461a71f80096 |
|
MD5 | 08d959fe878337fe7341e93ae0eba552 |
|
BLAKE2b-256 | 79358d4af9fb41b3c53b2177e3dfecd1908f947150728d0ec53f5164bfc84a43 |
Hashes for django_lucide_icons-0.1.0-py2.py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | da892abfad21aa5eb601af179abcea98c81f6a6854d6d958e33ce9bcb07178d0 |
|
MD5 | 20f68704b047a02a08597752ccf2afc8 |
|
BLAKE2b-256 | 99101fefafdcc2989a54ed5dd1d7f700de0a87e28dd2771c5d1547a9e6a7c4ca |