Skip to main content

Flask extension for FontAwesome

Project description

Flask-FontAwesome

PyPI Version CI Documentation Status

Flask extension for FontAwesome.

Example

from flask import Flask, render_template
from flask_fontawesome import FontAwesome

app = Flask(__name__)
fa = FontAwesome(app)

@app.route('/')
def index():
    return render_template('index.html')

app.run(host='127.0.0.1', port=8080)
<!DOCTYPE html>
<html>
  <head>
    {{ fontawesome_html() }}
    <title>FontAwesome Example</title>
  </head>
  <body>
    <h1>FontAwesome Example</h1>
    <p>This is an example of a <span class="fas fa-link"></span> link.</p>
  </body>
</html>

License

This work is dual licensed under the MIT and Apache-2.0 licenses. See LICENSE-MIT and LICENSE-APACHE for details.

Attribution

The resources contained under flask_fontawesome/static are licensed to FontAwesome.

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_fontawesome-0.2.0.tar.gz (3.7 MB view details)

Uploaded Source

Built Distribution

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

flask_fontawesome-0.2.0-py3-none-any.whl (4.2 MB view details)

Uploaded Python 3

File details

Details for the file flask_fontawesome-0.2.0.tar.gz.

File metadata

  • Download URL: flask_fontawesome-0.2.0.tar.gz
  • Upload date:
  • Size: 3.7 MB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.11.2

File hashes

Hashes for flask_fontawesome-0.2.0.tar.gz
Algorithm Hash digest
SHA256 f2168a64d8e67d91724efab111e93268d959bf7f79055079ad2f000bfc37e4f5
MD5 80d05c440cf536ecc360691440b26f52
BLAKE2b-256 2da2c12b69159c9b9159aaa83129a199829c946c4d4e79e847334ca983dc9f5e

See more details on using hashes here.

File details

Details for the file flask_fontawesome-0.2.0-py3-none-any.whl.

File metadata

File hashes

Hashes for flask_fontawesome-0.2.0-py3-none-any.whl
Algorithm Hash digest
SHA256 a588b8580c8651497b5f7ae869486335653d1ef688757b771d94651aa0986941
MD5 6a5332c2e8ca586f8746cc7763097e95
BLAKE2b-256 8fb81fb1a9a5c5ef2b4e0eef93623bf519e5291b9f417b83b4624050320ada81

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