Get and use plugin config inside forms/data.txt.twig?

When I have a process like

process:
    - save:
        filename: feedback.txt
        body: "{% include 'forms/data.txt.twig' %}"
        operation: add

in a form: is it possible to retrieve and use the settings of a specific plugin inside forms/data.txt.twig? How?

@pikim, What have you tried sofar?

@anon76427325
E.g. {% set feature_enabled = config.plugins.name.feature %} in the first line of the twig and then use feature_enabled inside the script.

@pikim, And then what happened?

@anon76427325
Regardless of whether the boolean config.plugins.name.feature is true or false, feature_enabled is always null.

@pikim, See Template 'data.html.twig' does not have access context variables · Issue #569 · getgrav/grav-plugin-form · GitHub

@anon76427325
Thanks! That solved the issue. I’m using {% set feature_enabled = context.config.plugins.name.feature %} inside the macro now.