BLOG

How to duplicate an item in ThymeLeaf

18th March 2019

e.g. To duplicate a div 5 times, use:

<div th:each="i : ${#numbers.sequence(1, 5)}"></div>

← Back to all posts