Skip to content

Commit

Permalink
Note in README that substitutions don’t work inside quotes (lightbend…
Browse files Browse the repository at this point in the history
…#634)

* Note in README that substitutions don’t work inside quotes

There’s more on this in HOCON.md but can’t hurt to repeat, people do miss it.
  • Loading branch information
havocp authored and 2m committed May 23, 2019
1 parent 46daf99 commit 8fc33c8
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -706,9 +706,12 @@ string `foo` are concatenated into a string `42 foo`:
When concatenating values into a string, leading and trailing
whitespace is stripped but whitespace between values is kept.

Unquoted strings also support substitutions of course:
Quoted or unquoted strings can also concatenate with substitutions of course:

tasks-url : ${base-url}/tasks
tasks-url : ${base-url}"tasks:colon-must-be-quoted"

Note: the `${}` syntax must be outside the quotes!

A concatenation can refer to earlier values of the same field:

Expand Down

0 comments on commit 8fc33c8

Please sign in to comment.