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.2.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.2-py3-none-any.whl (4.5 MB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: Flask-FontAwesome-0.1.2.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.2.tar.gz
Algorithm Hash digest
SHA256 d6e38c4cf20fb1684cb7db2c846fffb7feee73ba9693dd7b9f90f9d36e4281c1
MD5 d1a27cc8dbdb96c0cf464c1c945c7df6
BLAKE2b-256 73a89cb31609779d2f409aaadfe285547dfacd0e5ab8f440c9538399e7c9ab16

See more details on using hashes here.

File details

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

File metadata

  • Download URL: Flask_FontAwesome-0.1.2-py3-none-any.whl
  • Upload date:
  • Size: 4.5 MB
  • 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.2-py3-none-any.whl
Algorithm Hash digest
SHA256 91e3be7a7205d505015697248bb30eb2b3ca27fe14a18893ad7049b703ffa98f
MD5 61f8c13c6453622cbaef34d903e7fd22
BLAKE2b-256 d957a58d2d08fc2dab33c054a884a966abccd7d403f207beb095fe7c1420d0e5

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