Hi all,
Is there any way that view variables & services can be accessed through the macro in volt? For example I want to access router service in macro:
{%- macro getClass(key) %}
{% return router.getActionName() == key ? "active" : "" %}
{%- endmacro %}
Thanks.