Interpolation like Ansible? #723
-
Is there an easy way to accept string interpolation in the same format as Ansible / Jinja, .i.e. {{ some_var }}? I would prefer to use a single conf directory for both provisioning my VM and launching my application. I can get by using full paths for every variable labeling a directory, but interpolation would be more convenient. Alternatively, I could generate an app.conf file during provisioning, but that would feel a little redundant. |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 1 reply
-
If I understand correctly, this is a question about whether OmegaConf is able to parse interpolations that are formatted with two pairs of enclosing braces, e.g. "{{ some_var }}". The answer is unfortunately no, OmegaConf does not currently support this; only the "${some_var}" syntax is supported for variable interpolations. |
Beta Was this translation helpful? Give feedback.
Hi @applied-mathematician,
If I understand correctly, this is a question about whether OmegaConf is able to parse interpolations that are formatted with two pairs of enclosing braces, e.g. "{{ some_var }}". The answer is unfortunately no, OmegaConf does not currently support this; only the "${some_var}" syntax is supported for variable interpolations.