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
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.45.0.tar.gz
(265.2 kB
view hashes)
Built Distribution
Close
Hashes for flask-tabler-icons-2.45.0.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | d27e285e1dbaba3863a649d5c1911266c8d6221958abbcddee90b395c55e1054 |
|
MD5 | c2a4a90e2ef0111e8452861fff4d1a71 |
|
BLAKE2b-256 | 6063f86c51069dbd37957b9c9fcd711f3790f72fefccb16346d96b44b10b3817 |
Close
Hashes for flask_tabler_icons-2.45.0-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 08659b1bdd4f1611c543809d81c7fe9a16418baef2402a8c5eb0ee33fc887f4c |
|
MD5 | 7fe406615cf55402ffd807cdf7df48ec |
|
BLAKE2b-256 | c643ab8dd21390eba9aad0eb103b34e0e8ee0fdec885fc3ed3d2e5c4ae44e382 |