Skip to main content

UNKNOWN

Project description

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='...')

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-Bootstrap3-3.1.1.3.tar.gz (516.8 kB view details)

Uploaded Source

File details

Details for the file Flask-Bootstrap3-3.1.1.3.tar.gz.

File metadata

File hashes

Hashes for Flask-Bootstrap3-3.1.1.3.tar.gz
Algorithm Hash digest
SHA256 e01d82a4137cba15750b71edc1cdea1bab00d4f22bf9534994af5267d6e17db3
MD5 2cecd5e093674ba9453481efd7a10f22
BLAKE2b-256 a1757b848e774ca06c035f58fbeda26936da4a5f1d968b0c6f22af2d10c2403b

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page