forked from lix-project/lix
add more examples on string interpolation
This commit is contained in:
parent
c209e6e108
commit
6ba8d6dc82
|
@ -38,7 +38,7 @@ the rest.
|
||||||
</tr>
|
</tr>
|
||||||
<tr>
|
<tr>
|
||||||
<td>
|
<td>
|
||||||
`"Hello world"`
|
`"hello world"`
|
||||||
</td>
|
</td>
|
||||||
<td>
|
<td>
|
||||||
A string
|
A string
|
||||||
|
@ -58,10 +58,14 @@ the rest.
|
||||||
</tr>
|
</tr>
|
||||||
<tr>
|
<tr>
|
||||||
<td>
|
<td>
|
||||||
|
`"hello ${ { a = "world" }.a }"`
|
||||||
|
|
||||||
|
`"1 2 ${3}"`
|
||||||
|
|
||||||
`"${pkgs.bash}/bin/sh"`
|
`"${pkgs.bash}/bin/sh"`
|
||||||
</td>
|
</td>
|
||||||
<td>
|
<td>
|
||||||
A string containing an expression (expands to `"/nix/store/<hash>-bash-<version>/bin/sh"`)
|
String interpolation (expands to `"hello world"`, `"1 2 3"`, `"/nix/store/<hash>-bash-<version>/bin/sh"`)
|
||||||
</td>
|
</td>
|
||||||
</tr>
|
</tr>
|
||||||
<tr>
|
<tr>
|
||||||
|
|
Loading…
Reference in a new issue