Skip to main content

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.47.0.tar.gz (267.3 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

flask_tabler_icons-2.47.0-py3-none-any.whl (273.7 kB view details)

Uploaded Python 3

File details

Details for the file flask-tabler-icons-2.47.0.tar.gz.

File metadata

  • Download URL: flask-tabler-icons-2.47.0.tar.gz
  • Upload date:
  • Size: 267.3 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.2 CPython/3.11.7

File hashes

Hashes for flask-tabler-icons-2.47.0.tar.gz
Algorithm Hash digest
SHA256 cb50f1ee0db90a3bd0288ec62a928b5976bb71b58b72b99e0d9cb60815c29dff
MD5 18e326979c5df8bb2ded21345f175ba8
BLAKE2b-256 89cb7efeb97bcc2e81fea64da7cb5cd7e1a60c1f79ea85f0575d66761b17715c

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for flask_tabler_icons-2.47.0-py3-none-any.whl
Algorithm Hash digest
SHA256 99c350d61608a0625136607f2c007c64086c29d201beb6a995caba8a6ae25f8e
MD5 9737a30d1744de5fcc2431490b065f2d
BLAKE2b-256 d0fc127f7db2fbf49cd5a6c3e447f26297e935dfe7b45057195fedac30bb8ad1

See more details on using hashes here.

Supported by

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