Document limitation with constant interpolation at the start of a value (#741).

This commit is contained in:
Dan Helfman 2023-12-22 21:39:44 -08:00
parent e80e0a253c
commit 67af0f5734

View file

@ -578,6 +578,21 @@ source_directories:
archive_name_format: 'bar-{now}' archive_name_format: 'bar-{now}'
``` ```
Note that if you'd like to interpolate a constant into the beginning of a
value, you'll need to quote it. For instance, this won't work:
```yaml
source_directories:
- {my_home_directory}/.config # This will error!
```
Instead, do this:
```yaml
source_directories:
- "{my_home_directory}/.config"
```
<span class="minilink minilink-addedin">New in version 1.8.5</span> Constants <span class="minilink minilink-addedin">New in version 1.8.5</span> Constants
work across includes, meaning you can define a constant and then include a work across includes, meaning you can define a constant and then include a
separate configuration file that uses that constant. separate configuration file that uses that constant.