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


Release history Release notifications

History Node

3.1.1.3

This version
History Node

3.1.1.2

History Node

3.1.1.1

History Node

3.1.1.0

Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Filename, size & hash SHA256 hash help File type Python version Upload date
Flask-Bootstrap3-3.1.1.2.tar.gz (516.7 kB) Copy SHA256 hash SHA256 Source None Mar 28, 2014

Supported by

Elastic Elastic Search Pingdom Pingdom Monitoring Google Google BigQuery Sentry Sentry Error logging CloudAMQP CloudAMQP RabbitMQ AWS AWS Cloud computing Fastly Fastly CDN DigiCert DigiCert EV certificate StatusPage StatusPage Status page