layout-dialect ausgebaut: Thymeleaf 3.x erlaubt ähnliches mit Bordmitteln
[website] / dist / potemkin / typo.html
index 83d0f3c..44074cd 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='/potemkin/typo.html'"
+    th:replace="~{templates/layout :: layout(uri='/potemkin/typo.html', json='MERGE:potemkin.json')}"
     >
   <head>
-    <title>Typography</title>
+    <title id="title">Typography</title>
     <!--/*-->
     <meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
     <link rel="stylesheet" type="text/css" href="../css/base.css"/>
@@ -15,8 +13,8 @@
     <script src="../js/prettify.js" th:src="@{/js/prettify.js}"></script>
     <!--*/-->
   </head>
-  <body onload="prettyPrint()" thymeproxy:variables="MERGE:potemkin.json">
-    <article layout:fragment="maincontent">
+  <body onload="prettyPrint()">
+    <article class="maincontent">
       <header><h1>Typography</h1></header>
       <p>
         Lorem ipsum dolor <a href="#da">sit amet</a>, consectetur adipisicing elit,