<li>
<a class="{{ app.request.get('_route') matches '{' ~ route ~ '_*}' ? 'active' }}"
href="{{ path(route) }}">
{{ text }}
</a>
</li>