layout-dialect ausgebaut: Thymeleaf 3.x erlaubt ähnliches mit Bordmitteln
[website] / dist / potemkin / html-experimente / formulare.html
index 0f12f09..3a9d2eb 100644 (file)
@@ -1,13 +1,10 @@
 <!DOCTYPE html>
 <html
     xmlns="http://www.w3.org/1999/xhtml"
-    xmlns:layout="http://www.thymeleaf.org"
-    xmlns:th="http://www.thymeleaf.org"
-    layout:decorator="templates/layout"
-    th:with="uri='/potemkin/html-experimente/formulare.html'"
+    th:replace="~{templates/layout :: layout(uri='/potemkin/html-experimente/formulare.html', json='MERGE:/potemkin.json')}"
     >
   <head>
-    <title>HTML-Experimente - Formulare</title>
+    <title id="title">HTML-Experimente - Formulare</title>
     <!--/*-->
     <meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
     <link rel="stylesheet" type="text/css" href="../../css/base.css"/>
@@ -15,8 +12,8 @@
     <link rel="stylesheet" type="text/css" href="../../css/print.css" media="print"/>
     <!--*/-->
   </head>
-  <body thymeproxy:variables="MERGE:potemkin.json">
-    <article class="main" layout:fragment="maincontent">
+  <body>
+    <article class="maincontent">
       <header><h1>Formulare</h1></header>
       <form class="form" action="#" method="get">
         <h2 class="f">Anzeigetext</h2>