September 24, 2026

HTL data-sly-repeat: Repeating an Element

HTL sly-repeat

data-sly-repeat repeats an element once for every item in the specified list.

<div data-sly-repeat="${currentPage.listChildren}">${item.name}</div>

The difference from data-sly-list is that a list repeats the content of a container element, while repeat repeats the element itself and needs no container.

Back to the HTL tutorial index