Skip to main content

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/helper.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.12.0.tar.gz (296.5 kB view details)

Uploaded Source

Built Distribution

flask_tabler_icons-3.12.0-py3-none-any.whl (302.3 kB view details)

Uploaded Python 3

File details

Details for the file flask_tabler_icons-3.12.0.tar.gz.

File metadata

  • Download URL: flask_tabler_icons-3.12.0.tar.gz
  • Upload date:
  • Size: 296.5 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/5.0.0 CPython/3.11.9

File hashes

Hashes for flask_tabler_icons-3.12.0.tar.gz
Algorithm Hash digest
SHA256 08ce50aa0470c58c4b48f33b44cd1f567ba9e3dc8874dfcce971b951a7bf657e
MD5 8dfe9c58e083335a73180a36c21e142c
BLAKE2b-256 9d3c75e0cb49c68f47a9fc0f3c44103eca9a5469bbf9a51747cbad9b81863373

See more details on using hashes here.

File details

Details for the file flask_tabler_icons-3.12.0-py3-none-any.whl.

File metadata

File hashes

Hashes for flask_tabler_icons-3.12.0-py3-none-any.whl
Algorithm Hash digest
SHA256 0cd7945de442ca57385f1ea0919e25c010c007310731c2e824a58f035d47e915
MD5 bf196eb7229497d6bca8b966cec7711a
BLAKE2b-256 52a260598dca804fd00a9f0f098ed53b76782c4eb6ce617c7cf97c18d06ff6c3

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page