Questions tagged [htl]

HTL (HTML Templating Language, formerly known as Sightly) - the Apache Sling XSS-aware template language

HTL (HTML Templating Language, formerly known as Sightly) is an XSS-aware templating language that was introduced in Adobe Experience Manager 6.0 and later donated to Apache Sling. Its distinguishing features are a tight integration with Sling and helping make your HTML immune to cross-site scripting by supplying sensible defaults and anti-XSS filters.

94 questions
0
votes
1 answer

HTL data-sly-test for listChildren

Is there a way to test if listChildren will return anything? Something along the line of: 0} />
Arielle Adams
  • 98
  • 2
  • 10
0
votes
1 answer

Sightly Implicit Objects

I am trying to implement my own version of WCM's navigation component, whose logic can be found here, subbing my own logic instead: import java.util.*; import com.day.cq.wcm.api.Page; import com.day.cq.wcm.api.PageFilter; import…
Arielle Adams
  • 98
  • 2
  • 10
0
votes
1 answer

Shortest way to rendering Javascript output as markup in Adobe Experience Manager?

I must (project requirement) create some markup directly in Javascript on the server side and then integrate it into the HTL output without further modification. The following two-liner works for me:
obelix
  • 189
  • 1
  • 6
0
votes
1 answer

Cross site scripting protection turned off

I came across this snippet of code in the demo We.Retail AEM project: