Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Bugfix for #321: Twig builder should load JSON strings as Twig "safe …
…strings". Empty strings were getting converted to empty objects.
- Loading branch information
Showing
6 changed files
with
33 additions
and
17 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,12 +1,4 @@ | ||
{ | ||
"modifier_class": "one-cee-from-json", | ||
"content": "This is the content.", | ||
"sampleArray": [ | ||
"An item", | ||
"Another item" | ||
], | ||
"sampleNull": null, | ||
"sampleObject": { | ||
"sampleProperty": "value" | ||
} | ||
"content": "This is the content." | ||
} |
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,4 +1,12 @@ | ||
{ | ||
"modifier_class": "one-cee-example-from-json", | ||
"content": "This is the content." | ||
"content": "This is the content.", | ||
"sampleArray": [ | ||
"An item in SampleArray", | ||
"Another item in SampleArray" | ||
], | ||
"sampleNull": null, | ||
"sampleObject": { | ||
"sampleProperty": "sampleProperty value" | ||
} | ||
} |
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