I'm trying to return a value from a macro without any whitespace. From the documentation, I've tried to use the "-" within the start and end block of the macro declaration that doesn't seem to do anything.
{% macro domainToLangCodeMap() -%} {% set domain_extension = content.absolute_url|replace("https://", "")|replace("http://", "")|split('/')|first|split('.')|last %} {% set content_two_letter_language_code = content.language.languageTag|split('-')|first %}
@Kevin-CAh yes, the addition of the render filter did the job. I hope there will be a fix in the future where a macro by default will remove any whitespace.