I can not find syntax for building simple for-each-loop in Thymeleaf template.
I\'m not satisfied with just th:each=\"\" attribute, because it copi
The th:block solution is definitely the best one, but alternatively you can also try using th:remove="tag" in order to remove the containing tag:
...
...
...
The benefit of this approach is that you can also pass a Thymeleaf expression to Here is the documentation for th:remove in order to only remove the tag conditionally, e.g. if you want only some users to be included in a , besides having other interesting uses.
th:remove.