Spring Thymeleaf 

Spring Thymeleaf is a very easy to use and popular template engine used to generate final presentation views. The Spring Thymeleaf Framework offers ViewResolver as well as View implementations that can be used to generate presentation views. The uniqueness of Spring Thymeleaf comes from the syntax it uses to define presentation view logic. 

A snippet of this syntax is as follows:

<!DOCTYPE HTML>
<html xmlns:th="http://www.thymeleaf.org">
...
<body>
<p th:text="${message}">
</body>
</html>

The uniqueness of this syntax is that it is pure HTML and isn't special code that needs the help of the server side to render. This means that UI engineers can work on styling, animations, and so on without ever knowing anything about Spring Thymeleaf. In order to use Spring Thymeleaf, the following Maven starter dependency needs to be included:

<dependencies>
...
<dependency>
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-starter-thymeleaf</artifactId>
</dependency>
</dependencies>

Adding the preceding Maven dependency will import all the required dependencies for Spring Thymeleaf to be used in the web application successfully. The following sections will describe how to sketch-design the Retro Board and then implement it using Spring Thymeleaf.

..................Content has been hidden....................

You can't read the all page of ebook, please click here login for view all page.
Reset
18.188.152.162