API Reference

class flask_bootstrap.Bootstrap(app=None)
init_app(app)
static load_css(version='4.3.1', bootstrap_sri=None)

Load Bootstrap’s css resources with given version.

New in version 0.1.0.

Parameters:version – The version of Bootstrap.
static load_js(version='4.3.1', jquery_version='3.4.1', popper_version='1.14.0', with_jquery=True, with_popper=True, bootstrap_sri=None, jquery_sri=None, popper_sri=None)

Load Bootstrap and related library’s js resources with given version.

New in version 0.1.0.

Parameters:
  • version – The version of Bootstrap.
  • jquery_version – The version of jQuery.
  • popper_version – The version of Popper.js.
  • with_jquery – Include jQuery or not.
  • with_popper – Include Popper.js or not.