Skip to main content

Flask-Bootstrap packages Twitter’s Bootstrap into an extension that mostly consists of a blueprint named ‘bootstrap’. It can also create links to serve Bootstrap from a CDN.

Usage

Here is an example:

from flask.ext.bootstrap import Bootstrap

[...]

bootstrap = Bootstrap()
bootstrap.init_app(app)

This makes some new templates available, mainly bootstrap/base.html and bootstrap/base_cdn.html. These are blank pages that include all bootstrap resources, and have predefined blocks where you can put your content. The core block to alter is body, otherwise see the source of the template for more possiblities.

The url-endpoint bootstrap.static is available for refering to Bootstrap resources.:

url_for('bootstrap.static', filename='...')

Release files for Flask-Bootstrap3 3.1.1.3

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for Flask-Bootstrap3 3.1.1.3
File Size Uploaded
Flask-Bootstrap3-3.1.1.3.tar.gz 516.8 kB Details

Release files / Flask-Bootstrap3-3.1.1.3.tar.gz

Download URL Flask-Bootstrap3-3.1.1.3.tar.gz
Size 516.8 kB
Tags Source
SHA-256 checksum
How to use checksums
e01d82a4137cba15750b71edc1cdea1bab00d4f22bf9534994af5267d6e17db3
BLAKE2b-256 checksum
How to use checksums
a1757b848e774ca06c035f58fbeda26936da4a5f1d968b0c6f22af2d10c2403b
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No

Release history Release notifications | RSS feed

This release

3.1.1.3 This release

1 release file

3.1.1.2

1 release file

3.1.1.1

1 release file

3.1.1.0

1 release file

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page