{# http://anvoz.github.io/bootstrap-tldr/ #} {# type can be: 'success', 'info', 'warning', 'danger' #} {% macro bs_panel(type, heading=None) -%}
{% if heading is not none -%} {{ heading }} {% else -%} {{ caller('heading') }} {% endif -%}
{% if heading is not none -%} {{ caller() }} {% else -%} {{ caller('body') }} {% endif -%}
{% endmacro -%}