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:09 UTC

[sling-site] branch feature/SLING-11538-display-context-jsonString created (now 0c905e388)

This is an automated email from the ASF dual-hosted git repository.

kwin pushed a change to branch feature/SLING-11538-display-context-jsonString
in repository https://gitbox.apache.org/repos/asf/sling-site.git


      at 0c905e388 SLING-11538 document HTL display context "jsonString"

This branch includes the following new commits:

     new 0c905e388 SLING-11538 document HTL display context "jsonString"

The 1 revisions listed above as "new" are entirely new to this
repository and will be described in separate emails.  The revisions
listed as "add" were already present in the repository and have only
been added to this reference.



[sling-site] 01/01: SLING-11538 document HTL display context "jsonString"

Posted by kw...@apache.org.
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)).