Thymeleaf: How to exclude outer tag when using th:each?
Even if it can be done using th:remove="tag"
I would suggest you use th:block
<th:block th:each="map : ${location.subMaps}">
<bookmark th:name="${map.name}"
th:href="'#'+${map.id}" th:include=":: locationBookmark(${map})">
</bookmark>
</th:block>
I figured out how to solve the problem, it's easy, just addth:remove="tag"
to the outer tag will do.