{% macro recursive_post_tree(namespace, writable, 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 }} - {{ app.name }}{% endblock %} {% block main_content %} {% if tree %} {{ recursive_post_tree(request.get('namespace'), writable, tree) }} {% else %} {% endif %} {% endblock %} {% block footer_content %} {% if writable %} {{ render( controller( 'App\\Controller\\ModuleController::post', { request: request } ) ) }} {% endif %} {% endblock %}