What is "thymeleaf"

Thymeleaf’s main goal is to bring "natural templates" to your development workflow - HTML that can be displayed correctly in browsers and also function as static prototypes.

Note: has modules for the Spring Framework

Templates Naturais

HTML templates written with in Thymeleaf look and work like HTML, an example:

<table>
  <thead>
    <tr>
      <th th:text="#{msgs.headers.name}">Name</th>
      <th th:text="#{msgs.headers.price}">Price</th>
    </tr>
  </thead>
  <tbody>
    <tr th:each="prod: ${allProducts}">
      <td th:text="${prod.name}">Oranges</td>
      <td th:text="${#numbers.formatDecimal(prod.price, 1, 2)}">0.99</td>
    </tr>
  </tbody>
</table>

Ecosystem

The "ecosystem" of it is composed of:

  • Official extensions (a.k.a. Thymeleaf Extras): created by Team Thymeleaf and supported as part of the project.

  • Unofficial or community extensions: maintained by Thymeleaf users outside of Project Thymeleaf and distributed under their own license and terms of support.