{% macro minimal_li(v) %} {{ v.minimal.render }} {% endmacro %} {% macro external_li(v) %}
  • {{ v.tab_label | capitalize }}
  • {% endmacro %} {% macro static_li(v) %}
  • {{ v.static.renderable() }}
  • {% endmacro %} {% macro independent_li(v) %}
  • {{ v.independent.render }}
  • {% endmacro %} {% macro content_li(v) %}
  • {{ v.tab_label | capitalize }}
  • {% endmacro %} {% macro _tabs_navigation(groups) %} {% for g, v in groups.items() %} {{ v._li(v) | safe }} {% endfor %} {% endmacro %} {% macro _tabs_content(groups) %} {% for g, content in groups.items() %} {% if content.content %} {{ _tab_content(content) }} {% endif %} {% endfor %} {% endmacro %} {% macro _tab_content(content) %}
    {{ content.content.render | safe }}
    {% endmacro %} {% macro bootstrap_tabs(t) %}
    {{ _tabs_content(t.tab_groups)}}
    {% endmacro %} {% macro minimal_tabs(t) %} {% for k,v in t.tab_groups.items() %} {% if v.kind in ('minimal', 'external', 'static', 'independent') %} {{ v._li(v) | safe}} {% else %} {{ v.content.render | safe }} {% endif %} {% endfor %} {% endmacro %}