HTL Syntax: Block Statements and Expressions
HTL is strict about syntax. There are two kinds of HTL syntax.
Block statements
Block statements are custom data attributes added directly to existing HTML. They are prefixed with data-sly.
- sly-test
- sly-use
- sly-unwrap
- sly-text
- sly-attribute
- sly-element
- sly-repeat
- sly-list
- sly-resource
- sly-include
- sly-template
- sly-call
Expression language
HTL expressions are evaluated at run time, and their value is injected into the outgoing HTML stream. Expressions are delimited by ${ and }.