]> juplo.de Git - website/commitdiff
WIP: title/main/marginal explizit
authorKai Moritz <kai@juplo.de>
Wed, 8 May 2019 21:21:31 +0000 (23:21 +0200)
committerKai Moritz <kai@juplo.de>
Thu, 9 May 2019 15:41:11 +0000 (17:41 +0200)
for i in `find -name '*.html'`; do sed -i -e's+body\(.\)\(uri='\''[^'\'']*'\''\)+body\1\n      \2,\n      title=~{:: title},\n      maincontent=~{:: .maincontent},\n      marginalcontent=~{:: .marginalcontent}+' $i; done

dist/potemkin/html-experimente/basis-layout.html
dist/potemkin/html-experimente/druck-layout.html
dist/potemkin/html-experimente/kein-layout.html
dist/potemkin/html-experimente/phone.html
dist/potemkin/html-experimente/seitenaufteilung.html
dist/potemkin/html-experimente/seitenkopf.html
dist/potemkin/html-experimente/tablet.html
dist/potemkin/html-experimente/tiny.html
dist/templates/layout.html

index eb7993d5a08856ed1876c964115c62a20efd09d3..7a6f1e779f9f497f8d191fd7ac6d626d841d2238 100644 (file)
@@ -5,7 +5,11 @@
     <meta http-equiv="Content-Type" content="text/html; charset=UTF-8" th:remove="all"/>
     <link rel="stylesheet" th:rel="stylesheet" type="text/css" href="../../css/base.css" th:href="@{/css/base.min.css}"/>
   </head>
-  <body th:replace="~{/templates/layout.html :: body(uri='/potemkin/html-experimente/basis-layout.html', json='MERGE:/potemkin.json')}">
+  <body th:replace="~{/templates/layout.html :: body(
+      uri='/potemkin/html-experimente/basis-layout.html',
+      title=~{:: title},
+      maincontent=~{:: .maincontent},
+      marginalcontent=~{:: .marginalcontent}, json='MERGE:/potemkin.json')}">
     <main class="maincontent">
       <header><h1>Nur das Basis-Layout</h1></header>
       <strong th:replace="/templates/layout.html :: maincontent">MAIN-CONTENT</strong>
index 198aca2f6348e77c12811644c457175b34710df6..d7d1d050df2caecaf541435ba019219142bc212f 100644 (file)
@@ -6,7 +6,11 @@
     <link rel="stylesheet" th:rel="stylesheet" type="text/css" href="../../css/base.css" th:href="@{/css/base.css}"/>
     <link rel="stylesheet" th:rel="stylesheet" type="text/css" href="../../css/print.css" th:href="@{/css/print.css}"/>
   </head>
-  <body th:replace="~{/templates/layout.html :: body(uri='/potemkin/html-experimente/druck-layout.html', json='MERGE:/potemkin.json')}">
+  <body th:replace="~{/templates/layout.html :: body(
+      uri='/potemkin/html-experimente/druck-layout.html',
+      title=~{:: title},
+      maincontent=~{:: .maincontent},
+      marginalcontent=~{:: .marginalcontent}, json='MERGE:/potemkin.json')}">
     <main class="maincontent">
       <header><h1>Die für den Ausdruck angepasste Ansicht</h1></header>
       <strong th:replace="/templates/layout.html :: maincontent">MAIN-CONTENT</strong>
index 86cd2276a4ca4bcedbaa509be7be267f692123d9..0807454f370dfd22221b5c66c0c290240b4d6f7d 100644 (file)
@@ -4,7 +4,11 @@
     <title>HTML-Experimente - Kein Layout</title>
     <meta http-equiv="Content-Type" content="text/html; charset=UTF-8" th:remove="all"/>
   </head>
-  <body th:replace="~{/templates/layout.html :: body(uri='/potemkin/html-experimente/kein-layout.html', json='MERGE:/potemkin.json')}">
+  <body th:replace="~{/templates/layout.html :: body(
+      uri='/potemkin/html-experimente/kein-layout.html',
+      title=~{:: title},
+      maincontent=~{:: .maincontent},
+      marginalcontent=~{:: .marginalcontent}, json='MERGE:/potemkin.json')}">
     <main class="maincontent">
       <header><h1>Alle Stylings deaktiviert</h1></header>
       <strong th:replace="/templates/layout.html :: maincontent">MAIN-CONTENT</strong>
index b819188c6200e492c68c852797558d9f77780ceb..e341625bd6091116bdfa2ff929262718b85f2367 100644 (file)
@@ -6,7 +6,11 @@
     <link rel="stylesheet" th:rel="stylesheet" type="text/css" href="../../css/base.css" th:href="@{/css/base.css}"/>
     <link rel="stylesheet" th:rel="stylesheet" type="text/css" href="../../css/phone.css" th:href="@{/css/phone.css}"/>
   </head>
-  <body th:replace="~{/templates/layout.html :: body(uri='/potemkin/html-experimente/phone.html', json='MERGE:/potemkin.json')}">
+  <body th:replace="~{/templates/layout.html :: body(
+      uri='/potemkin/html-experimente/phone.html',
+      title=~{:: title},
+      maincontent=~{:: .maincontent},
+      marginalcontent=~{:: .marginalcontent}, json='MERGE:/potemkin.json')}">
     <main class="maincontent">
       <header><h1>Layout für Smartphones</h1></header>
       <strong th:replace="/templates/layout.html :: maincontent">MAIN-CONTENT</strong>
index 7223556cce135fd252a57eef33f643b89f044dd1..6d3e3b5887b2e37d6a6440955f5fc7ebd962b1c4 100644 (file)
@@ -6,7 +6,11 @@
     <link rel="stylesheet" th:rel="stylesheet" type="text/css" href="../../css/base.css" th:href="@{/css/base.css}"/>
     <link rel="stylesheet" th:rel="stylesheet" type="text/css" href="../../css/seitenaufteilung.css" th:href="@{/css/seitenaufteilung.css}"/>
   </head>
-  <body th:replace="~{/templates/layout.html :: body(uri='/potemkin/html-experimente/seitenaufteilung.html', json='MERGE:/potemkin.json')}">
+  <body th:replace="~{/templates/layout.html :: body(
+      uri='/potemkin/html-experimente/seitenaufteilung.html',
+      title=~{:: title},
+      maincontent=~{:: .maincontent},
+      marginalcontent=~{:: .marginalcontent}, json='MERGE:/potemkin.json')}">
     <main class="maincontent">
       <header><h1>Nur das Basis-Layout und die Seitenaufteiltung</h1></header>
       <strong th:replace="/templates/layout.html :: maincontent">MAIN-CONTENT</strong>
index f3319f0eb6f1f7bb7250ef990ae80f202fc62c77..1b287ef8081e3f8fbedae812548c76d3ae2820da 100644 (file)
@@ -6,7 +6,11 @@
     <link rel="stylesheet" th:rel="stylesheet" type="text/css" href="../../css/base.css" th:href="@{/css/base.css}"/>
     <link rel="stylesheet" th:rel="stylesheet" type="text/css" href="../../css/seitenkopf.css" th:href="@{/css/seitenkopf.css}"/>
   </head>
-  <body th:replace="~{/templates/layout.html :: body(uri='/potemkin/html-experimente/seitenkopf.html', json='MERGE:/potemkin.json')}">
+  <body th:replace="~{/templates/layout.html :: body(
+      uri='/potemkin/html-experimente/seitenkopf.html',
+      title=~{:: title},
+      maincontent=~{:: .maincontent},
+      marginalcontent=~{:: .marginalcontent}, json='MERGE:/potemkin.json')}">
     <main class="maincontent">
       <header><h1>Nur das Basis-Layout und der Seitenkopf</h1></header>
       <strong th:replace="/templates/layout.html :: maincontent">MAIN-CONTENT</strong>
index d55024a40732425b03d4be4961cc212fe8ad4484..d8f15b95e082563d6a1064af991e73747912e361 100644 (file)
@@ -6,7 +6,11 @@
     <link rel="stylesheet" th:rel="stylesheet" type="text/css" href="../../css/base.css" th:href="@{/css/base.css}"/>
     <link rel="stylesheet" th:rel="stylesheet" type="text/css" href="../../css/tablet.css" th:href="@{/css/tablet.css}"/>
   </head>
-  <body th:replace="~{/templates/layout.html :: body(uri='/potemkin/html-experimente/tablet.html', json='MERGE:/potemkin.json')}">
+  <body th:replace="~{/templates/layout.html :: body(
+      uri='/potemkin/html-experimente/tablet.html',
+      title=~{:: title},
+      maincontent=~{:: .maincontent},
+      marginalcontent=~{:: .marginalcontent}, json='MERGE:/potemkin.json')}">
     <main class="maincontent">
       <header><h1>Layout für Tablets</h1></header>
       <strong th:replace="/templates/layout.html :: maincontent">MAIN-CONTENT</strong>
index de36bc64dc18e05cc0ab52bc4a01ff2b411126d6..4d925cb024eaa1e1abeafe83dd100641fffb3afc 100644 (file)
@@ -6,7 +6,11 @@
     <link rel="stylesheet" th:rel="stylesheet" type="text/css" href="../../css/base.css" th:href="@{/css/base.css}"/>
     <link rel="stylesheet" th:rel="stylesheet" type="text/css" href="../../css/tiny.css" th:href="@{/css/tiny.css}"/>
   </head>
-  <body th:replace="~{/templates/layout.html :: body(uri='/potemkin/html-experimente/tiny.html', json='MERGE:/potemkin.json')}">
+  <body th:replace="~{/templates/layout.html :: body(
+      uri='/potemkin/html-experimente/tiny.html',
+      title=~{:: title},
+      maincontent=~{:: .maincontent},
+      marginalcontent=~{:: .marginalcontent}, json='MERGE:/potemkin.json')}">
     <main class="maincontent">
       <header><h1>Layout für sehr kleine Bildschirmgrößen</h1></header>
       <strong th:replace="/templates/layout.html :: maincontent">MAIN-CONTENT</strong>
index 1f946dc0c34f30d14965bf8101211d67639b1e9d..975df3c811e95d71545beee03665162739e1bab5 100644 (file)
@@ -37,7 +37,7 @@
     <link rel="caononical" href="layout.html" th:replace="~{:: #canonical}?:~{}"/>
   </head>
   <body
-      th:fragment="body(uri)"
+      th:fragment="body(uri, maincontent, marginalcontent)"
       thymeproxy:variables="${json}"
       th:with="crumbs=${_crumbs.get(uri)}"
       id="top"