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.46.0.tar.gz
(266.2 kB
view hashes)
Built Distribution
Close
Hashes for flask-tabler-icons-2.46.0.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | 1845611f130efd286038d86be89597eceb864b40440f2f41393709f251bcdd61 |
|
MD5 | 113381280389335caa2706274ead3409 |
|
BLAKE2b-256 | 429a65779fbcb8088dda402c81d5bce42513d328df516b74a71af1313107d005 |
Close
Hashes for flask_tabler_icons-2.46.0-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 22bcab3f78e70b774e0475ad3183e436e74abd60306fa823b838ace938108c33 |
|
MD5 | b7e6f4dd1848ea2454cb6625ae15101b |
|
BLAKE2b-256 | ccea9dc3aba590fedd3089648d56b0d6d08ee41fd12fdde848535401a92426d5 |