{# Display only one panel #} {% macro displayOne(tabs, panel) %}
{% for tab in tabs[panel] %}
{% if tab.content is defined %}

{{ tab.content }}

{% endif %}
{% endfor %}
{% endmacro %} {# Display all panels #} {% macro display(tabs) %} {% import _self as tabsPanel %} {% for panel,array in tabs %} {{ tabsPanel.displayOne(tabs, panel) }} {% endfor %} {% endmacro %}