Umstellung auf Thymeleaf: Schritt 1 - Thymeleaf zum Laufen bekommen
[website] / src / main / webapp / thymeleaf / index.html
1 <!DOCTYPE html>
2 <html xmlns="http://www.w3.org/1999/xhtml" xmlns:th="http://www.thymeleaf.org">
3   <head>
4     <title th:replace="views/index :: title">TITLE</title>
5     <meta charset="UTF-8"/>
6     <meta name="viewport" content="width=device-width"/>
7   </head>
8   <body>
9     <div th:replace="templates/header :: fragment">HEADER</div>
10     <h1 th:include="views/index :: title">TITLE</h1>
11     <div th:replace="views/index :: content">CONTENT</div>
12     <div th:replace="templates/footer :: fragment">FOOTER</div>
13   </body>
14 </html>