Skip to main content

FontAwesome for Flask

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.1.0.tar.gz (8.4 kB 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.1.0-py3-none-any.whl (4.0 kB view details)

Uploaded Python 3

File details

Details for the file Flask-FontAwesome-0.1.0.tar.gz.

File metadata

  • Download URL: Flask-FontAwesome-0.1.0.tar.gz
  • Upload date:
  • Size: 8.4 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/1.11.0 pkginfo/1.4.2 requests/2.12.4 setuptools/39.2.0 requests-toolbelt/0.8.0 tqdm/4.23.4 CPython/3.5.3

File hashes

Hashes for Flask-FontAwesome-0.1.0.tar.gz
Algorithm Hash digest
SHA256 99cff8fe736b3376e87bceb4a993386b74714cae77d3d9210928ec8d447b4404
MD5 6ee133d4cfd8840af72366a091802a2d
BLAKE2b-256 79232cc0bd4f2933d152c6a3b7613159172f35a1e6ac5d95a847a84fd4cb93ab

See more details on using hashes here.

File details

Details for the file Flask_FontAwesome-0.1.0-py3-none-any.whl.

File metadata

  • Download URL: Flask_FontAwesome-0.1.0-py3-none-any.whl
  • Upload date:
  • Size: 4.0 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/1.11.0 pkginfo/1.4.2 requests/2.12.4 setuptools/39.2.0 requests-toolbelt/0.8.0 tqdm/4.23.4 CPython/3.5.3

File hashes

Hashes for Flask_FontAwesome-0.1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 c7dd98f5077bc4253881f4c89b8654b5db0e2d3b8ebfcd67916557ab3f2c3f50
MD5 846f23b0b14478ce0e8b918080aab0b6
BLAKE2b-256 616716f8319c04bc930d2602a37309b7be50b4cff1d2ee9cc6817c20b337740f

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