HTML Template Language Specification
Version 1.4 brings the following enhancements:
data-sly-list
and data-sly-repeat
iteration control (#55) [0][1]in
relational operator (#56) [2]data-sly-unwrap
block statement (#52) [4]uri
display context is applied automatically (#62) [5]data-sly-set
[6]For a full list of issues addressed by this release please check [7].
[0] - https://github.com/Adobe-Marketing-Cloud/htl-spec/blob/1.4/SPECIFICATION.md#226-list [1] - https://github.com/Adobe-Marketing-Cloud/htl-spec/blob/1.4/SPECIFICATION.md#227-repeat [2] - https://github.com/Adobe-Marketing-Cloud/htl-spec/blob/1.4/SPECIFICATION.md#1143-relational-operators [3] - https://github.com/Adobe-Marketing-Cloud/htl-spec/blob/1.4/SPECIFICATION.md#111-grammar [4] - https://github.com/Adobe-Marketing-Cloud/htl-spec/blob/1.4/SPECIFICATION.md#2211-unwrap [5] - https://github.com/Adobe-Marketing-Cloud/htl-spec/blob/1.4/SPECIFICATION.md#113-context-sensitive [6] - https://github.com/Adobe-Marketing-Cloud/htl-spec/blob/1.4/SPECIFICATION.md#2212-set [7] - https://github.com/Adobe-Marketing-Cloud/htl-spec/milestone/3?closed=1
data-sly-attribute
block elementNew features:
format
option has been extended to allow formatting strings
, dates
and numbers
New Features:
Enhancements:
data-sly-include
file
option, which was present in the TCK + reference implementation since 1.0New Features:
styleComment
display contextdata-sly-repeat
block element<sly>
Enhancements:
join
option can also be used with a simple string, outputting just the string in this casedata-sly-list
(and also for data-sly-repeat
) the element will be shown only if the attribute's value provides a non-empty collection,
a string or a number