Consider the code:
{% set testA %}foo{% endset %}
Output: {{ testA }}
This returns "Output: foo".
Now:
{% macro module() %}
{% set testB %}bar{% endset %}
Output: {{ testB }}
{% endmacro %}
This returns "barOutput: ".
Anyone else experienced this behavior?
Thanks!
Full disclosure: I'm importing my macro from another file.
I can reproduce this. That's definitely a bug.
Workaround:
{% macro module() %}
{% macro workaround() %}bar{% endmacro %}
{% set testB = workaround() %}
Output: {{ testB }}
{% endmacro %}
Most helpful comment
Workaround: