flask_fontawesome
This moudle provides helpers to quickly add FontAwesome resources to your Flask app.
-
class
flask_fontawesome.
Cdn
[source]
Bases: object
-
css_html
() → markupsafe.Markup[source]
-
js_html
() → markupsafe.Markup[source]
-
resources_html
() → markupsafe.Markup[source]
-
class
flask_fontawesome.
FontAwesome
(app: flask.app.Flask = None)[source]
Bases: object
-
init_app
(app: flask.app.Flask) → None[source]
-
class
flask_fontawesome.
StaticCdn
[source]
Bases: flask_fontawesome.Cdn
-
css_html
() → markupsafe.Markup[source]
-
js_html
() → markupsafe.Markup[source]
-
class
flask_fontawesome.
UseFontAwesomeComCdn
[source]
Bases: flask_fontawesome.Cdn
-
css_html
() → markupsafe.Markup[source]
-
js_html
() → markupsafe.Markup[source]
-
flask_fontawesome.
fontawesome_css
() → markupsafe.Markup[source]
Returns :class`~flask.Markup` of the CSS FontAwesome resources.
-
flask_fontawesome.
fontawesome_html
() → markupsafe.Markup[source]
Returns Markup
of all the requested FontAwesome resources. This can be embedded
in your Jinja templates to add FontAwesome to your site.
-
flask_fontawesome.
fontawesome_js
() → markupsafe.Markup[source]
Returns Markup
of the JS FontAwesome resources.