71 lines
2.2 KiB
Plaintext
71 lines
2.2 KiB
Plaintext
|
Metadata-Version: 2.1
|
||
|
Name: Flask-FontAwesome
|
||
|
Version: 0.1.5
|
||
|
Summary: FontAwesome for Flask
|
||
|
Home-page: https://github.com/heartsucker/flask-fontawesome
|
||
|
Author: heartsucker
|
||
|
Author-email: heartsucker@autistici.org
|
||
|
License: UNKNOWN
|
||
|
Platform: any
|
||
|
Classifier: Development Status :: 5 - Production/Stable
|
||
|
Classifier: Environment :: Web Environment
|
||
|
Classifier: Framework :: Flask
|
||
|
Classifier: Intended Audience :: Developers
|
||
|
Classifier: License :: OSI Approved :: Apache Software License
|
||
|
Classifier: License :: OSI Approved :: MIT License
|
||
|
Classifier: Operating System :: OS Independent
|
||
|
Classifier: Programming Language :: Python :: 3 :: Only
|
||
|
Classifier: Programming Language :: Python :: 3.5
|
||
|
Classifier: Programming Language :: Python :: 3.6
|
||
|
Classifier: Programming Language :: Python :: 3.7
|
||
|
Classifier: Programming Language :: Python :: 3.8
|
||
|
Requires-Python: >=3.5
|
||
|
Description-Content-Type: text/markdown
|
||
|
Requires-Dist: Flask
|
||
|
|
||
|
# Flask-FontAwesome
|
||
|
[![PyPI Version](https://badge.fury.io/py/Flask-FontAwesome.svg)](https://pypi.python.org/pypi/Flask-FontAwesome) [![CI](https://api.travis-ci.org/heartsucker/flask-fontawesome.svg?branch=develop)](https://api.travis-ci.org/heartsucker/flask-fontawesome.svg?branch=develop) [![Documentation Status](https://readthedocs.org/projects/flask-fontawesome/badge/?version=latest)](https://flask-fontawesome.readthedocs.io/en/latest/?badge=latest)
|
||
|
|
||
|
Flask extension for [FontAwesome](https://fontawesome.com/).
|
||
|
|
||
|
## Example
|
||
|
|
||
|
```python
|
||
|
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)
|
||
|
```
|
||
|
|
||
|
```html
|
||
|
<!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](./LICENSE-MIT)
|
||
|
and [LICENSE-APACHE](./LICENSE-APACHE) for details.
|
||
|
|
||
|
### Attribution
|
||
|
|
||
|
The resources contained under [`flask_fontawesome/static`](./flask_fontawesome/static) are licensed to FontAwesome.
|
||
|
|
||
|
|