Please enable JavaScript.
Coggle requires JavaScript to display documents.
Sightly : (Block, expression and element (Loading client library (data…
Sightly :
Security
Context aware escaping to all variable
HTL removes the o/p of expression that are in script and style context
<script> var trackingID = "${myTrackingID @ context='scriptString'}"; </script>
<style> a { font-family: "${myFont @ context='styleString'}"; } </style>
XSS(Cross site scripting attack)
Development Efficiency
HTML Developers
Easy to learn
simple and straightforward
separation of concern in markup and logic
Reduced Cost
HTL gets compiled into Java Servlets
Block, expression and element
Comment
<!--/* An HTL Comment */-->
data-sly-element
data-sly-attribute
Loading client library
data-sly-call(clientlib.html)
Property Access"${currentPage.title}", ${properties[myVar]}
&&, ||, ternary, @