Thymeleaf
Thymeleaf is an actively used template language created in 2011. Thymeleaf is a Java XML/XHTML/HTML5 template engine that can work both in web (servlet-based) and non-web environments. It is better suited for serving XHTML/HTML5 at the view layer of MVC-based web applications, but it can process any XML file even in offline environments. It provides full Spring Framework integration. Read more on Wikipedia...
9Years Old | 20Users | ?Jobs |
- the Thymeleaf wikipedia page
- Thymeleaf first appeared in 2011
- See also: java, xml, java-server-pages, apache-velocity, template-attribute-language
- Have a question about Thymeleaf not answered here? Email me and let me know how I can help.
Example code from Wikipedia:
<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>
Last updated August 9th, 2020