Releases: helloflask/bootstrap-flask
Version 2.0.2
Version 2.0.1
A fix release for the 2.0 version.
- Remove extra quotaion mark in
render_nav_item(#201). - Fix signature of
Bootstrap.__init__()incompatible with older version (#198).
Thanks to @davidlesieur and @msoucy!
Version 2.0.0
This major version adds the Bootstrap 5 support (finally)!
Bootstrap 4 & 5 support
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.
Update on versions
- Drop Python 2 and 3.5 support.
- Bump Bootstrap Icons to v1.7.2.
- Bump Bootstrap & Bootswatch to 4.6.1/5.1.3.
Donation enabled
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!
Version 1.8.0
This is the last version that supports Python 2.
Some new features in this version:
- A better way to pass table action URLs (#146, #151)
- Some configurations to change table action titles (#140)
- SRI support (#142)
See the changelog for details: https://github.com/greyli/bootstrap-flask/blob/master/CHANGES.rst#180
Thanks to @yuxiaoy1 and @caffeinatedMike!
Version 1.7.0
The version includes a lot of improvements on render_table, especially for the table actions.
- Add a
custom_actionsparameter for therender_tablemacro. When passing a list of tuples[(title, bootstrap icon, link)]to thecustom_actionsparameter, therender_tablemacro will create an icon (link) on the action column for each tuple in the list. The title text (first index of each tuple) will show when hovering over eachcustom_actionsbutton. #134 - Update Bootstrap Icons to v1.5.0.
- Improve action icons for
render_table, now the icons can be styled with theaction-iconclass. #137 - Change the default
action_pk_placeholderto':id'. The support to the old value will be removed in version 2.0. #138
Version 1.6.0
Version 1.5.3
A bugfix release.
See the changelog for more details.
Version 1.5.2
A bugfix release:
- Fix
render_tablemacro for the breaking change in SQLAlchemy >= 1.4 (PR #124, thanks to @Demetriex)
Use the following command to upgrade:
pip install -U bootstrap-flask