Are you using Thymeleaf? I use it in combination with Kotlin and Spring.
When writing conditional statements, if you write them using tags like div
, they will be included in the output. I’ll introduce a way to use logical blocks instead.
Environment
- Thymeleaf 2.1.4
Method
Use th:block
.