You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@sling.apache.org by kw...@apache.org on 2022/08/13 14:52:10 UTC
[sling-site] 01/01: SLING-11538 document HTL display context "jsonString"
This is an automated email from the ASF dual-hosted git repository.
kwin pushed a commit to branch feature/SLING-11538-display-context-jsonString
in repository https://gitbox.apache.org/repos/asf/sling-site.git
commit 0c905e38800b80d0eb55106a6675d4df655f545e
Author: Konrad Windszus <kw...@apache.org>
AuthorDate: Sat Aug 13 16:52:04 2022 +0200
SLING-11538 document HTL display context "jsonString"
---
.../jbake/content/documentation/bundles/scripting/scripting-htl.md | 6 ++++++
1 file changed, 6 insertions(+)
diff --git a/src/main/jbake/content/documentation/bundles/scripting/scripting-htl.md b/src/main/jbake/content/documentation/bundles/scripting/scripting-htl.md
index 554b5c588..cf2613a14 100644
--- a/src/main/jbake/content/documentation/bundles/scripting/scripting-htl.md
+++ b/src/main/jbake/content/documentation/bundles/scripting/scripting-htl.md
@@ -84,6 +84,12 @@ The Sling HTL Scripting engine fully complies with the [HTML Template Language S
## Expression Options
+
+### Display Context
+
+In addition to the contexts defined in [HTL Spec 1.2.1](https://github.com/adobe/htl-spec/blob/1.4/SPECIFICATION.md#121-display-context) a context with name `jsonString` is supported which escapes a text according to the JSON string grammar defined by [ECMA-404](https://www.ecma-international.org/wp-content/uploads/ECMA-404_2nd_edition_december_2017.pdf) in chapter 9 ([SLING-11538](https://issues.apache.org/jira/browse/SLING-11538)).
+
+
### I18n
In addition to the options defined in [HTL Spec 1.2.3](https://github.com/adobe/htl-spec/blob/1.4/SPECIFICATION.md#123-i18n) the option `basename` is supported to set the basename of the used [Sling i18n Resource bundle](../internationalization-support-i18n.html#resourcebundle-with-base-names) ([SLING-5314](https://issues.apache.org/jira/browse/SLING-5314)).