layout-dialect ausgebaut: Thymeleaf 3.x erlaubt ähnliches mit Bordmitteln
[website] / dist / potemkin.html
index 019a888..b2c3d8b 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="title='Projects', uri='/potemkin.html'"
+    th:replace="~{templates/layout :: layout(uri='/potemkin.html', json='MERGE:/potemkin.json')}"
     >
   <head>
-    <title>Projects - Potemkinsche Dörfer!</title>
+    <title id="title">Projects - Potemkinsche Dörfer!</title>
     <!--/*-->
     <meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
     <link rel="stylesheet/less" type="text/css" href="less/base.less"/>
@@ -15,7 +13,9 @@
     <script src="js/less-1.7.0.min.js"></script>
     <!--*/-->
   </head>
-  <body thymeproxy:variables="MERGE:potemkin.json">
-   <h1>Projects - Potemkinsche Dörfer!</h1>
+  <body>
+   <main class="maincontent">
+     <h1>Projects - Potemkinsche Dörfer!</h1>
+   </main>
   </body>
 </html>