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.44.0.tar.gz
(263.4 kB
view hashes)
Built Distribution
Close
Hashes for flask-tabler-icons-2.44.0.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | 2a8033a0f477b970987ea79546a0a051400316c3293e6009e4dfd3dc6cbdee0b |
|
MD5 | 026fb052ed098647d97467cdc6ee728c |
|
BLAKE2b-256 | 0b62f9d5e62614efa1a9ce45cc39004b5acae3ea75ebe86357929feadf9365b4 |
Close
Hashes for flask_tabler_icons-2.44.0-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 6cd426c4b8a0090e599811205b5f3decf05e186c2e01db5aad2de13718c7dbce |
|
MD5 | 69ad9ade436097e331917d88c43574d7 |
|
BLAKE2b-256 | 7e5099067aa2e89eec248c3429808621eedd479dd1f409545d14b9b87be72a0f |