layout-dialect ausgebaut: Thymeleaf 3.x erlaubt ähnliches mit Bordmitteln
[website] / dist / contact.html
index c87a89e..a1e2689 100644 (file)
@@ -1,12 +1,10 @@
 <!DOCTYPE html>
 <html
     xmlns="http://www.w3.org/1999/xhtml"
-    xmlns:layout="http://www.thymeleaf.org"
-    layout:decorator="templates/layout"
-    th:with="uri='/contact.html'"
+    th:replace="~{templates/layout :: layout(uri='/contact.html')}"
     >
   <head>
-    <title>Contact</title>
+    <title id="title">Contact</title>
     <!--/*-->
     <meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
     <link rel="stylesheet" type="text/css" href="css/base.css"/>
@@ -15,7 +13,7 @@
     <!--*/-->
   </head>
   <body>
-    <div id="content" class="main pack cf" layout:fragment="maincontent">
+    <div class="maincontent">
       <div class="pack">
         <div class="p left">
           <img class="p" src="img/kai-moritz.jpg" th:src="@{/img/kai-moritz.jpg}" alt="Portrait"/>