a collection of jinja 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-3.3.0.tar.gz
(284.0 kB
view hashes)
Built Distribution
Close
Hashes for flask_tabler_icons-3.3.0-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 1f029b0a99bc51cfc1eaf7f39091baab84c914c712e3242c6cadf2bd2c97b0a8 |
|
MD5 | 0a230f7cb7281170c71a8c1ccc29bd0b |
|
BLAKE2b-256 | 8989cc80c2a908d4c9865c3770b83cc5116a0b7426ea31b7601ecd3405ef88ab |