j2cli icon indicating copy to clipboard operation
j2cli copied to clipboard

(Jinja2) variable inside a variable

Open yannickdenimal opened this issue 5 years ago • 0 comments

It is possible to create a variable dynamicly with another variables

something like

{{ '"api_' + "BU_NAME"|env + '"' | env }}

where BU_NAME is an env variables value "en" and api_en another one with the value

Or something like https://stackoverflow.com/questions/32976700/python-jinja2-variable-inside-a-variable

yannickdenimal avatar Dec 05 '19 16:12 yannickdenimal