Hello!
It seems that it's not possible to access configuration values from within a Twig macro. For instance, if I have this in <theme-directory>/<theme-name>.yaml:
test: "hello"
And a macro in macros/test.html.twig:
{% macro test() %}
<h2>Macro: {{ config.theme.test }}</h2>
{% endmacro %}
And finally this in a template:
{% import 'macros/test.html.twig' as test %}
<h2>Outside macro: {{ config.theme.test }}</h2>
{{ test.test() }}
Then the resulting output is:
<h2>Outside macro: hello</h2>
<h2>Macro: </h2>
Is there a way around this?