{% import "Harambe/components/html.html" as html with context %} {%- macro _format_key(val, def) -%} {{- val | default(def, true) | slug -}} {%- endmacro -%} {# Widget A collection of some of Bootstrap components Most of the macros must be called in your template around the content to be wrapped in {% call collapse('My Title') %} This is the body {% endcall %} #} #---- ALERT -------------------------------------------------------------------- {# widget.alert(): display alert message widget.alert(message, category, dismissible) - message: The message to display - category: the category (info, success, danger, warning) - Dismissible: When True it will show a close button #} {% macro alert(category="info", dismissible=False) %}