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
<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>
<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>
<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>
<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>
<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>
<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>
<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>
<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>
<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"