forked from edgurgel/solid
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
This patch is the first step towards supporting the Whitespace Control tags. It only implements support for the whitespace object tags `{{-` and `-}}`. Support for the tags is more complicated since the `Tag.eval/3` function needs to support the `trim_previous` and `trim_next` arguments. In some cases there are multiple of them and we need to forward them to further calls of `Solid.render/3`. I'm very new to NimbleParsec and generally parsers so I'm posting this to get verification on the current path I have taken. Some guidance would be appreciated if possible. Needed by edgurgel#10
- Loading branch information
Joel Ambass
committed
Feb 19, 2021
1 parent
2313212
commit 5d1e651
Showing
5 changed files
with
89 additions
and
30 deletions.
There are no files selected for viewing
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
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
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
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 |
---|---|---|
@@ -0,0 +1 @@ | ||
{} |
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 |
---|---|---|
@@ -0,0 +1,3 @@ | ||
{% assign my_variable = "tomato" %} | ||
{% assign your_variable = "your" %} | ||
! {{ your_variable }} ! {{- my_variable -}} ! |