Beispiel aus Thymeleaf-Doku überarbeitet
[website] / dist / templates / example / page.html
1 <!DOCTYPE html>
2 <html th:replace="~{/templates/example/layout.html :: layout(~{::title}, ~{::section})}">
3 <head>
4     <title>Page Title</title>
5 </head>
6 <body>
7 <section>
8     <p>Page content</p>
9     <div>Included on page</div>
10 </section>
11 </body>
12 </html>