Separated layout from content with Thymeleaf
[demos/testing] / src / main / resources / templates / home.html
1 <!doctype html>
2 <html lang="en" xmlns:th="http://www.thymeleaf.org"  th:replace="~{layout :: pagelayout(~{:: title}, ~{:: h1}, ~{:: div.card-text})}">
3   <head>
4     <meta charset="utf-8">
5     <title>Shows Remote-Content</title>
6   </head>
7   <body>
8     <h1>Fetched Data</h1></div>
9     <div class="card-text">
10       <pre th:text="${text}">TEXT</pre>
11     </div>
12   </body>
13 </html>