- Upgrade license format in pyproject.toml.
- Upgrade to Bootstrap 5.3.6
Release date: 2025/5/2
- Drop Python 3.8 support.
- Upgrade to Bootstrap 5.3.5, including Bootswatch (adding theme Brite).
- Fix icon font loading issue when
BOOTSTRAP_SERVE_LOCALisTrue. - Add support for customzing the form input with
label_class,radio_class, anddescription_classparameters in therender_kwdict.
Release date: 2025/3/9
- Add support for icon classes.
- Upgrade to Bootstrap Icons 1.11.3.
- Replace deprecated color
mutedwithsecondary.
Release date: 2024/10/3
- Fix the badge classes in the
render_nav_itemmacro for Bootstrap 5. - Add
_badge_classesparam to therender_nav_itemmacro to set badge classes. - Support
bootswatch_themeas parameter toload_css.
Release date: 2024/4/7
- Test against Python 3.12.
- Replaced deprecated color "muted" with "secondary" (#340).
- Adding
body_classesparameter torender_table(#350). - Migrate setup.py to pyproject.toml.
Release date: 2023/11/30
- Upgrade to Bootstrap Icons 1.11.2.
Release date: 2023/10/11
- Fix the incorrect JS file integrity value.
Release date: 2023/10/11
- Upgrade to Bootstrap 5.3.2, Bootswatch 5.3.1, and Bootstrap Icons 1.11.1.
- Set up the Azure web app for the example application.
Release date: 2023/7/24
- Drop Python 3.7 support, and test against Python 3.11.
- Render enums in tables by their labels.
- Support creating action URLs for dict data (#268).
- Upgrade to Bootstrap 5.3.0, Bootstrap Icons 1.10.5, and Popper 2.11.8.
Release date: 2022/11/20
- Drop Python 3.6 support, and test against Python 3.10.
- Add support for strict Content Security Policy (CSP) (#252)
- Upgrade to Bootstrap 5.2.2, Popper 2.11.6, Bootswatch 5.2.2, and Bootstrap Icons 1.9.1.
- Fix Flask-SQLAlchemy
paginatenamed parameters in tests and examples. - Support to preview available Bootswatch theme in the example application.
- Remove
.DS_Storefiles from the distribution files.
Release date: 2022/8/20
- Add
safe_columnsandurlize_columnsparameters torender_tablemacro to support rendering table column as HTML/URL (#204). - Rename the
badgeparameter ofrender_nav_itemmacro to_badge. - Rename the
use_liparameter ofrender_nav_itemmacro to_use_li.
Release date: 2022/2/27
- Add the missing
form-selectclass for Bootstrap 5 form select fields (#211).
Release date: 2022/1/27
- Remove extra quotation mark in
render_nav_item(#201). - Fix signature of
Bootstrap.__init__()incompatible with older version (#198).
Release date: 2022/1/13
- Drop Python 2 and 3.5 support.
- Combine
classargument ofrender_fieldorfield.render_kw.classwith Bootstrap classes (#159). - Add initial support for Bootstrap 5 (#161):
- Add
Bootstrap4class and deprecateBootstrap. - Add
Bootstrap5class for Bootstrap 5 support. - Move Bootstrap 4-related files to
bootstrap4subfolder, and deprecate template pathbootstrap/. - Bootstrap 4 macros are in the
bootstrap4/template folder, and Bootstrap 5 macros are inbootstrap5/. - Add separate tests, templates, static files, and examples for Bootstrap 5.
- Add
- Remove the deprecated
form_errorsmacro and the URL string variable support inrender_table. - Render boolean field as a Bootstrap switch with
SwitchFieldclass (#175). - Add
BOOTSTRAP_FORM_GROUP_CLASSESconfig for Bootstrap 5, defaults tomb-3. Also add aform_group_classesparameter forrender_form,render_field, andrender_form_row(#184). - Add
BOOTSTRAP_FORM_INLINE_CLASSESconfig for Bootstrap 5, defaults torow row-cols-lg-auto g-3 align-items-center. Also add aform_inline_classesparameter forrender_form(#184). - Add
form_typeandhorizontal_columnsparameters torender_form_row(#192). - Add support for WTForms range fields (
DecimalRangeFieldandIntegerRangeField) (#194). - Bump Bootstrap Icons to v1.7.2.
- Bump Bootstrap & Bootswatch to 4.6.1/5.1.3.
Release date: 2021/9/5
- Fix bootswatch theme bug: remove theme name
'default'(#141). - Add configuration
BOOTSTRAP_TABLE_VIEW_TITLE,BOOTSTRAP_TABLE_EDIT_TITLE,BOOTSTRAP_TABLE_DELETE_TITLE,BOOTSTRAP_TABLE_NEW_TITLEto support changing the icon title of table actions (#140). - Introduce a new and better way to pass table action URLs (#146, #151).
- Deprecate
action_pk_placeholderand placeholder action URLs inrender_table. - Support SRI for JS/CSS resources (#142).
Release date: 2021/6/10
- 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-iconCSS class (#137). - Change the default
action_pk_placeholderto':id'. The support to the old value will be removed in version 2.0 (#138).
Release date: 2021/5/29
- Add a
new_urlparameter for therender_tablemacro. When passing an URL to thenew_urlparameter, therender_tablemacro will create an icon (link) on the action header (#133). - Fix the display of the delete icon for
render_tablemacro (#132).
Release date: 2021/5/18
- Fix class for horizontal form label (#131).
- Fix hidden field label issue for
render_fieldmacro (#130). - Refactor tests (#125).
Release date: 2021/4/13
- Fix render_table macro for SQLAlchemy >= 1.4 (#124).
Release date: 2020/11/9
Release date: 2020/8/30
- Fix
toxbroken environments. - Fix
ResourceWarningintest_local_resources(#78). - Fix
IndexErrorwhen usingrender_tablewith empty data (#75). - Add support for actions column in
render_tablemacro (#76). - Add support for Bootswatch theme via configuration
BOOTSTRAP_BOOTSWATCH_THEME(#88). - Fix checkbox render issue: add
forattribute to link<label>with checkbox, only addis-invalidclass when there are errors. - Change default button style class from
btn-secondarytobtn-primary(#62). - Deprecated
form_errorsmacro and it will be removed in 2.0, addrender_hidden_errorsmacro as replacement. - Add
render_iconmacro to render Bootstrap icon with Bootstrap Icon SVG Sprite (#99). - Add configuration
BOOTSTRAP_MSG_CATEGORYto set default message category.
Release date: 2020/6/15
- Add
render_tablemacro to render a Bootstrap table (#71).
Release date: 2020/5/30
- Support display error message for
RadioFieldandBooleanField, display description forRadioField.
Release date: 2020/4/29
- Fix add
field.render_kw.classto form label class attribute. - Fix append extra space in class attribute when no
field.render_kw.classpresents (#63).
Release date: 2020/4/23
- Fix
enctypeattribute setting for WTFormsMultipleFileField(Flask-Bootstrap #198). - Fix WTForms field class append bug when using
render_kw={'class': 'my-class'}(#53). - Fix WTForms field description not showing for
BooleanField(Flask-Bootstrap #197). - Add configuration variable
BOOTSTRAP_BTN_STYLE``(default to ``primary) andBOOTSTRAP_BTN_SIZE``(default to ``md) to set default form button style and size globally. - Add parameter
button_styleandbutton_mapforrender_formandrender_fieldto set button style and size.
Release date: 2019/12/5
- Add macro
render_messagesfor rendering flashed messages. - Fix rendering bug for WTForms
FormField(#34).
Release date: 2019/9/9
- Update Bootstrap version to 4.3.1
Release date: 2019/3/7
- Added macro
render_form_rowfor rendering a row of a bootstrap grid form.
Release date: 2018/11/14
- Fix missing error message when form type was horizontal.
- Fix missing input label for RadioField.
- Fix RadioField grid when form type was horizontal.
Release date: 2018/9/6
- Correct macro name used in
templates/bootstrap/form.html:form_field-->render_field.
Release date: 2018/8/30
- Built-in resources loading not based on``FLASK_ENV``.
Release date: 2018/8/7
- Fix unmatched built-in jQuery filename. (#8)
Release date: 2018/8/7
- Fix KeyError Exception if ENV isn't defined. (#7)
Release date: 2018/7/24
- Add missing
<script>tag in resources URL. (#3)
Release date: 2018/7/22
- Built-in resources will be used when
FLASK_ENVset todevelopment. - Change CDN provider to jsDelivr.
Release date: 2018/7/21
- Include
popper.jsbeforebootstrap.jsinbootstrap.load_js(). (#2)
Release date: 2018/7/1
- Fix local resources path error
- Add basic unit tests
Release date: 2018/6/11
Initial release.