Bootstrap 4 & 5 helper for your Flask projects.
Full Changelog: https://github.com/helloflask/bootstrap-flask/compare/2.3.3...2.4.0
Full Changelog: https://github.com/helloflask/bootstrap-flask/compare/2.3.2...2.3.3
Full Changelog: https://github.com/helloflask/bootstrap-flask/compare/2.3.1...2.3.2
Full Changelog: https://github.com/helloflask/bootstrap-flask/compare/2.3.0...2.3.1
Full Changelog: https://github.com/helloflask/bootstrap-flask/compare/2.2.0...2.3.0
New feature release!
See the full changes in the changelog: https://github.com/helloflask/bootstrap-flask/blob/master/CHANGES.rst#220
Features:
safe_columns
and urlize_columns
parameters to render_table
macro
to support rendering table column as HTML/URL (#204). Thanks @PanderMusubiChanges:
badge
parameter of render_nav_item
macro to _badge
.use_li
parameter of render_nav_item
macro to _use_li
.A bugfix release for Bootstrap 5 support:
Thanks to @a2yp!
A fix release for the 2.0 version.
render_nav_item
(#201).Bootstrap.__init__()
incompatible with older version (#198).Thanks to @davidlesieur and @msoucy!
This major version adds the Bootstrap 5 support (finally)!
Now you can use the separate extension class for different Bootstrap major versions.
For Bootstrap 4, use the Bootstrap4
class:
from flask_bootstrap import Bootstrap4
# ...
bootstrap = Bootstrap4(app)
and import macros from the template path bootstrap4/
:
{% from 'bootstrap4/form.html' import render_form %}
For Bootstrap 5, use the Bootstrap5
class:
from flask_bootstrap import Bootstrap5
# ...
bootstrap = Bootstrap5(app)
and import macros from the template path bootstrap5/
:
{% from 'bootstrap5/form.html' import render_form %}
The Bootstrap
class and bootstrap/
template path are deprecated since 2.0 and will be removed in 3.0.
Now you can support Bootstrap-Flask by donating on Open Collective. Your donation keeps Bootstrap-Flask maintained and updated with Bootstrap.
See the full changelog here: https://bootstrap-flask.readthedocs.io/en/stable/changelog/#id1
Thanks to @PanderMusubi for the help!