Sometimes you want to generate dynamic script using AEM either as part of the page or as a script resource.

Some notes on the more unexpected, bizarre, and sharp edges in the Sightly markup language, sometimes calls ‘HTL’.

values in <script> blocks

Using values inside <script> blocks is achieved by setting the context.

${ @ context="scriptString"}