a collection of macros for tabler icons
Project description
flask-tabler-icons
flask-tabler-icons is a collection of Jinja macros for tabler-icons and Flask.
Installation
pip install -U flask-tabler-icons
Example (check examples folder for details)
Register the extension:
from flask import Flask
from flask_tabler_icons import TablerIcons
app = Flask(__name__)
tabler_icons = TablerIcons(app)
{% from "tabler_icons.html" import render_icon %}
<html>
<head>
<!-- css area -->
<style>
.custom-css {
color: red;
}
</style>
</head>
<body>
<h2>tabler icon</h2>
{{ render_icon("helicopter", class="custom-css") }}
{{ render_icon("helicopter", animation="pulse", color="blue") }}
{{ render_icon("helicopter", animation="tada", color="blue") }}
{{ render_icon("helicopter", animation="rotate", color="blue") }}
</body>
</html>
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
flask-tabler-icons-2.47.0.tar.gz
(267.3 kB
view details)
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 flask-tabler-icons-2.47.0.tar.gz.
File metadata
- Download URL: flask-tabler-icons-2.47.0.tar.gz
- Upload date:
- Size: 267.3 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.2 CPython/3.11.7
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
cb50f1ee0db90a3bd0288ec62a928b5976bb71b58b72b99e0d9cb60815c29dff
|
|
| MD5 |
18e326979c5df8bb2ded21345f175ba8
|
|
| BLAKE2b-256 |
89cb7efeb97bcc2e81fea64da7cb5cd7e1a60c1f79ea85f0575d66761b17715c
|
File details
Details for the file flask_tabler_icons-2.47.0-py3-none-any.whl.
File metadata
- Download URL: flask_tabler_icons-2.47.0-py3-none-any.whl
- Upload date:
- Size: 273.7 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.2 CPython/3.11.7
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
99c350d61608a0625136607f2c007c64086c29d201beb6a995caba8a6ae25f8e
|
|
| MD5 |
9737a30d1744de5fcc2431490b065f2d
|
|
| BLAKE2b-256 |
d0fc127f7db2fbf49cd5a6c3e447f26297e935dfe7b45057195fedac30bb8ad1
|