🖌 Thymeleaf Tester
Thymeleaf 3.1.3.RELEASE
Spring Boot 4.0.3
Template Thymeleaf
Limpiar
<div> <h2 th:text="${titulo}">Título</h2> <p th:text="${mensaje}">Mensaje aquí</p> <ul th:if="${items}"> <li th:each="item : ${items}" th:text="${item}">item</li> </ul> <p th:unless="${items}">No hay items.</p> </div>
Variables (JSON)
{ "titulo": "Hola Thymeleaf", "mensaje": "El motor funciona correctamente", "items": ["Expresiones", "Iteraciones", "Condicionales"] }
▶ Evaluar Template
Error:
Preview renderizado
El resultado aparecerá aquí...
HTML generado
Copiar
El HTML generado aparecerá aquí...
Propiedades (application.yml)
prefix: app
app.titulo
Mi API
app.version
1.0.0
app.descripcion
API de ejemplo
Ejemplos rápidos
th:text
th:if / th:unless
th:each
th:class
th:href
#strings utilities
Inline ...
Operador ternario