{% block styles %} {% endblock %} {% block script %} {% endblock %} {% set currentRoute = app.request.attributes.get('_route')|default('') %} {% set controllerName = app.request.attributes.get('_controller')|default('') %} {% set inferredPage = controllerName starts with 'App\\Bundle\\ProjetBundle\\' ? 'projet' : (controllerName starts with 'App\\Bundle\\AdminBundle\\' ? 'admin' : (controllerName starts with 'App\\Bundle\\DashboardBundle\\' ? 'dashboard' : (controllerName starts with 'App\\Bundle\\EvenementBundle\\' ? 'evenement' : (controllerName starts with 'App\\Bundle\\GalerieBundle\\' ? 'galerie' : (controllerName starts with 'App\\Bundle\\PortailBundle\\' ? 'portail' : (controllerName starts with 'App\\Bundle\\MessagerieBundle\\' ? 'messagerie' : (controllerName starts with 'App\\Bundle\\ParametreBundle\\' ? 'parametre' : (controllerName starts with 'App\\Bundle\\UserBundle\\' ? 'user' : (controllerName starts with 'App\\Bundle\\WallBundle\\' ? 'wall' : (controllerName starts with 'App\\Bundle\\AppBundle\\' ? 'app' : '')))))))))) %} {% set entrypoint = pageEntry|default(inferredPage ?: 'app') %} {{ importmap(entrypoint) }}