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

Uploaded Python 3

File details

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

File metadata

  • Download URL: Flask-FontAwesome-0.1.1.tar.gz
  • Upload date:
  • Size: 3.9 MB
  • 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.1.tar.gz
Algorithm Hash digest
SHA256 944b566513f66278688a8b70cf44de05e1997eb9d111174632b42266d2be2aca
MD5 320b23e8fdb0dbe356cfecd78bdd6042
BLAKE2b-256 ce51d88c4830256d39cf6e900f29065ae4bbd81cb12401dfc56a1ee2455d85ff

See more details on using hashes here.

File details

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

File metadata

  • Download URL: Flask_FontAwesome-0.1.1-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.1-py3-none-any.whl
Algorithm Hash digest
SHA256 83e02882656f959e5397fcd4c1c2d30d5c34b38f9c85fae005a0b7c7ea9e2e6a
MD5 6e35284ff1778a06a2e688a5d088cbe0
BLAKE2b-256 9af993fb3a3aac0409fd5dea4a7f74d5ab174056722b8832dd16829468691d91

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