-
Notifications
You must be signed in to change notification settings - Fork 863
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Is it possible to use a variable in a value of a key-value declaration? #606
Comments
this is not possible in TOML, however you could add |
Thanks, what do you mean by "add |
instead of writing "read about version 11" in the config you write "read about version" and you add the version number after reading the config |
It can be achieved by adopting modern template engines. It should be agnostic to TOML IMHO. |
Got it, thanks. |
@drunkwcodes How can I do this. I have no knowledge on template engines. It will be helpful if you could provide some useful link |
@SubhramRanaRZP jinja, mako, etc. |
This is part of the config file:
If I change the version to 12, I don't want to go over each value and change it. What I want is to defined
version = "12"
(I guess under[params]
) and then use this variable in all the values, like:or something to this effect. Is something like this possible?
The text was updated successfully, but these errors were encountered: