Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Pawel Oziomek
committed
Sep 2, 2023
1 parent
863efc0
commit f36357b
Showing
3 changed files
with
13 additions
and
1 deletion.
There are no files selected for viewing
6 changes: 6 additions & 0 deletions
6
src/Scriban.Tests/TestFiles/020-interpolation/020-interpolation.out.txt
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1,7 @@ | ||
Scriban 5.8 can interpolate strings now | ||
Nested interpolation: 23new string | ||
UPPERCASE: 14 | ||
UPPERCASE: 14 | ||
Little more complex example: 2 Scriban 5 | ||
Interpolation at the beginning: 4 is 4 | ||
Pure string |
6 changes: 6 additions & 0 deletions
6
src/Scriban.Tests/TestFiles/020-interpolation/020-interpolation.txt
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1,7 @@ | ||
{{ $"Scriban {4 + 1}.8 can interpolate strings now" }} | ||
{{ $"Nested interpolation: {23 + "new string"}" }} | ||
{{ $"Uppercase: {4 + 10}" | string.upcase }} | ||
{{ string.upcase $"Uppercase: {4 + 10}" }} | ||
{{ $'Little more complex example: {2 + " " + string.capitalize $"scriban {5}"}' }} | ||
Interpolation at the beginning: {{ $"{math.times 2 2} is 4" }} | ||
{{ $"Pure string" }} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters