Flask-Bootstrap3-3.1.1.3
توضیحات
UNKNOWN
| ویژگی | مقدار |
|---|---|
| سیستم عامل | OS Independent |
| نام فایل | Flask-Bootstrap3-3.1.1.3 |
| نام | Flask-Bootstrap3 |
| نسخه کتابخانه | 3.1.1.3 |
| نگهدارنده | [] |
| ایمیل نگهدارنده | [] |
| نویسنده | Ryan Olson |
| ایمیل نویسنده | rmolson@gmail.com |
| آدرس صفحه اصلی | https://github.com/ryanolson/flask-bootstrap3 |
| آدرس اینترنتی | https://pypi.org/project/Flask-Bootstrap3/ |
| مجوز | BSD |
===============
Flask-Bootstrap
===============
Flask-Bootstrap packages `Twitter's Bootstrap
<http://twitter.github.com/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='...')
نحوه نصب
نصب پکیج whl Flask-Bootstrap3-3.1.1.3:
pip install Flask-Bootstrap3-3.1.1.3.whl
نصب پکیج tar.gz Flask-Bootstrap3-3.1.1.3:
pip install Flask-Bootstrap3-3.1.1.3.tar.gz