kolypto / j2cli

Jinja2 Command-Line Tool, reworked
http://pypi.python.org/pypi/j2cli
BSD 2-Clause "Simplified" License
744 stars 82 forks source link

(Jinja2) variable inside a variable #50

Open yannickdenimal opened 4 years ago

yannickdenimal commented 4 years ago

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