{% macro recursive_post_tree(namespace, tree) %} {% import _self as self %} {% if tree | length %} {% endif %} {% endmacro %} {% from _self import recursive_post_tree %} {% extends 'default/layout.html.twig' %} {% block head_title_content %}{{ request.get('namespace') | keva_namespace_value }} - {{ 'KevaChat' | trans }}{% endblock %} {% block main_content %} {{ render( controller( 'App\\Controller\\ModuleController::rooms', { request: request } ) ) }} {% if tree %} {{ recursive_post_tree(request.get('namespace'), tree) }} {% else %} {% endif %} {% endblock %} {% block footer_content %} {{ render( controller( 'App\\Controller\\ModuleController::post', { request: request } ) ) }} {% endblock %}