WIP
authorKai Moritz <kai@juplo.de>
Fri, 20 Nov 2020 21:00:20 +0000 (22:00 +0100)
committerKai Moritz <kai@juplo.de>
Fri, 20 Nov 2020 22:01:11 +0000 (23:01 +0100)
src/main/resources/400.html [deleted file]
src/main/resources/error.html [deleted file]
src/main/resources/layout.html [deleted file]
src/main/resources/templates/400.html [new file with mode: 0644]
src/main/resources/templates/error.html [new file with mode: 0644]
src/main/resources/templates/layout.html [new file with mode: 0644]
src/main/resources/templates/view.html [new file with mode: 0644]
src/main/resources/view.html [deleted file]

diff --git a/src/main/resources/400.html b/src/main/resources/400.html
deleted file mode 100644 (file)
index 36ba0c0..0000000
+++ /dev/null
@@ -1,15 +0,0 @@
-<!DOCTYPE HTML>
-<html xmlns:th="http://www.thymeleaf.org" th:replace="~{layout :: pagelayout(~{:: title}, ~{:: h1}, ~{:: div.card-text})}">
-  <head>
-    <title th:text="'400: ' + ${exception.getClass().getSimpleName()}">Testing Exception-Handling - Template for 400</title>
-    <link rel="stylesheet" href="https://stackpath.bootstrapcdn.com/bootstrap/4.5.2/css/bootstrap.min.css">
-    <meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
-  </head>
-  <body>
-    <h1 th:text="'400: ' + ${exception.getClass().getSimpleName()}">Template for 400</h1>
-    <div class="card-text table">
-      <p><strong th:text="'Catched exception: ' + ${exception}">EXCEPTION</strong></p>
-      <p><a href="#" th:href="@{/}" class="btn btn-primary">Back to HOME</a></p>
-    </div>
-  </body>
-</html>
diff --git a/src/main/resources/error.html b/src/main/resources/error.html
deleted file mode 100644 (file)
index a5e8149..0000000
+++ /dev/null
@@ -1,51 +0,0 @@
-<!doctype html>
-<html xmlns:th="http://www.thymeleaf.org" th:replace="~{layout :: pagelayout(~{:: title}, ~{:: h1}, ~{:: table.card-text})}">
-  <head>
-    <title th:text="|${status}: ${error}">XXX: ERROR</title>
-    <link rel="stylesheet" href="https://stackpath.bootstrapcdn.com/bootstrap/4.5.2/css/bootstrap.min.css">
-    <meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
-  </head>
-  <body>
-    <h1 th:text="|${status}: ${error}">XXX: ERROR</h1>
-      <table class="card-text table">
-        <tbody>
-          <tr class="border-top-0">
-            <th scope="row">Status</th>
-            <td th:text="${status}">ERROR.STATUS</td>
-          </tr>
-          <tr>
-            <th scope="row">Error</th>
-            <td th:text="${error}">ERROR.ERROR</td>
-          </tr>
-          <tr th:if="!${#strings.isEmpty(message)}">
-            <th scope="row">Message</th>
-            <td th:text="${message}">ERROR.MESSAGE</td>
-          </tr>
-          <tr th:if="!${#strings.isEmpty(requestId)}">
-            <th class="text-nowrap" scope="row">Request-ID</th>
-            <td th:text="${requestId}">ERROR.REQUEST_ID</td>
-          </tr>
-          <tr>
-            <th scope="row">Timstamp</th>
-            <td th:text="${timestamp}">ERROR.TIMESTAMP</td>
-          </tr>
-          <tr th:if="!${#strings.isEmpty(path)}">
-            <th scope="row">Path</th>
-            <td th:text="${path}">ERROR.PATH</td>
-          </tr>
-          <!--/**-->
-          <tr th:if="!${#strings.isEmpty(trace)}">
-            <th scope="row">Trace</th>
-            <td>
-              <div class="overflow-hidden">
-                <pre class="overflow-hidden" th:text="${trace}">ERROR.TRACE</pre>
-              </div>
-            </td>
-          </tr>
-          <!--**/-->
-        </tbody>
-      </table>
-      <p><a href="#" th:href="@{/}" class="btn btn-primary">Back to HOME</a>
-    </div>
-  </body>
-</html>
diff --git a/src/main/resources/layout.html b/src/main/resources/layout.html
deleted file mode 100644 (file)
index 3ad68ed..0000000
+++ /dev/null
@@ -1,20 +0,0 @@
-<!doctype html>
-<html lang="en" xmlns:th="http://www.thymeleaf.org" th:fragment="pagelayout(title,header,body)">
-  <head>
-    <meta charset="utf-8">
-    <meta name="viewport" content="width=device-width, initial-scale=1, shrink-to-fit=no">
-    <title th:replace="${title}">TITLE</title>
-    <link rel="stylesheet" href="https://stackpath.bootstrapcdn.com/bootstrap/4.5.2/css/bootstrap.min.css" th:href="@{/webjars/bootstrap/4.5.2/css/bootstrap.min.css}">
-  </head>
-  <body>
-    <nav class="navbar navbar-dark bg-primary navbar-expand navbar-dark flex-column">
-      <h2 class="navbar-brand">Demo: Creating Multiple Beans In Spring-Boot Pogrammatically</h2>
-    </nav>
-    <main class="container mt-5">
-      <div id="content" class="card">
-        <div class="card-header"><h1 th:replace="${header}">HEADER</h1></div>
-        <div class="card-body"><div th:replace="${body}">BODY</div></div>
-      </div>
-    </main>
-  </body>
-</html>
diff --git a/src/main/resources/templates/400.html b/src/main/resources/templates/400.html
new file mode 100644 (file)
index 0000000..36ba0c0
--- /dev/null
@@ -0,0 +1,15 @@
+<!DOCTYPE HTML>
+<html xmlns:th="http://www.thymeleaf.org" th:replace="~{layout :: pagelayout(~{:: title}, ~{:: h1}, ~{:: div.card-text})}">
+  <head>
+    <title th:text="'400: ' + ${exception.getClass().getSimpleName()}">Testing Exception-Handling - Template for 400</title>
+    <link rel="stylesheet" href="https://stackpath.bootstrapcdn.com/bootstrap/4.5.2/css/bootstrap.min.css">
+    <meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
+  </head>
+  <body>
+    <h1 th:text="'400: ' + ${exception.getClass().getSimpleName()}">Template for 400</h1>
+    <div class="card-text table">
+      <p><strong th:text="'Catched exception: ' + ${exception}">EXCEPTION</strong></p>
+      <p><a href="#" th:href="@{/}" class="btn btn-primary">Back to HOME</a></p>
+    </div>
+  </body>
+</html>
diff --git a/src/main/resources/templates/error.html b/src/main/resources/templates/error.html
new file mode 100644 (file)
index 0000000..a5e8149
--- /dev/null
@@ -0,0 +1,51 @@
+<!doctype html>
+<html xmlns:th="http://www.thymeleaf.org" th:replace="~{layout :: pagelayout(~{:: title}, ~{:: h1}, ~{:: table.card-text})}">
+  <head>
+    <title th:text="|${status}: ${error}">XXX: ERROR</title>
+    <link rel="stylesheet" href="https://stackpath.bootstrapcdn.com/bootstrap/4.5.2/css/bootstrap.min.css">
+    <meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
+  </head>
+  <body>
+    <h1 th:text="|${status}: ${error}">XXX: ERROR</h1>
+      <table class="card-text table">
+        <tbody>
+          <tr class="border-top-0">
+            <th scope="row">Status</th>
+            <td th:text="${status}">ERROR.STATUS</td>
+          </tr>
+          <tr>
+            <th scope="row">Error</th>
+            <td th:text="${error}">ERROR.ERROR</td>
+          </tr>
+          <tr th:if="!${#strings.isEmpty(message)}">
+            <th scope="row">Message</th>
+            <td th:text="${message}">ERROR.MESSAGE</td>
+          </tr>
+          <tr th:if="!${#strings.isEmpty(requestId)}">
+            <th class="text-nowrap" scope="row">Request-ID</th>
+            <td th:text="${requestId}">ERROR.REQUEST_ID</td>
+          </tr>
+          <tr>
+            <th scope="row">Timstamp</th>
+            <td th:text="${timestamp}">ERROR.TIMESTAMP</td>
+          </tr>
+          <tr th:if="!${#strings.isEmpty(path)}">
+            <th scope="row">Path</th>
+            <td th:text="${path}">ERROR.PATH</td>
+          </tr>
+          <!--/**-->
+          <tr th:if="!${#strings.isEmpty(trace)}">
+            <th scope="row">Trace</th>
+            <td>
+              <div class="overflow-hidden">
+                <pre class="overflow-hidden" th:text="${trace}">ERROR.TRACE</pre>
+              </div>
+            </td>
+          </tr>
+          <!--**/-->
+        </tbody>
+      </table>
+      <p><a href="#" th:href="@{/}" class="btn btn-primary">Back to HOME</a>
+    </div>
+  </body>
+</html>
diff --git a/src/main/resources/templates/layout.html b/src/main/resources/templates/layout.html
new file mode 100644 (file)
index 0000000..3ad68ed
--- /dev/null
@@ -0,0 +1,20 @@
+<!doctype html>
+<html lang="en" xmlns:th="http://www.thymeleaf.org" th:fragment="pagelayout(title,header,body)">
+  <head>
+    <meta charset="utf-8">
+    <meta name="viewport" content="width=device-width, initial-scale=1, shrink-to-fit=no">
+    <title th:replace="${title}">TITLE</title>
+    <link rel="stylesheet" href="https://stackpath.bootstrapcdn.com/bootstrap/4.5.2/css/bootstrap.min.css" th:href="@{/webjars/bootstrap/4.5.2/css/bootstrap.min.css}">
+  </head>
+  <body>
+    <nav class="navbar navbar-dark bg-primary navbar-expand navbar-dark flex-column">
+      <h2 class="navbar-brand">Demo: Creating Multiple Beans In Spring-Boot Pogrammatically</h2>
+    </nav>
+    <main class="container mt-5">
+      <div id="content" class="card">
+        <div class="card-header"><h1 th:replace="${header}">HEADER</h1></div>
+        <div class="card-body"><div th:replace="${body}">BODY</div></div>
+      </div>
+    </main>
+  </body>
+</html>
diff --git a/src/main/resources/templates/view.html b/src/main/resources/templates/view.html
new file mode 100644 (file)
index 0000000..2b66bb5
--- /dev/null
@@ -0,0 +1,22 @@
+<!DOCTYPE HTML>
+<html xmlns:th="http://www.thymeleaf.org" th:replace="~{layout :: pagelayout(~{:: title}, ~{:: h1}, ~{:: div.card-text})}">
+  <head>
+    <title th:text="${name}">SITE-TEMPLATE</title>
+    <link rel="stylesheet" href="https://stackpath.bootstrapcdn.com/bootstrap/4.5.2/css/bootstrap.min.css">
+    <meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
+  </head>
+  <body>
+    <h1 th:text="${name}">SITE</h1>
+    <div class="card-text">
+      <p th:text="${description}">DESCRIPTION</p>
+    </div>
+    <div class="card-text">
+      <p>
+        <em>
+          Each site is defined in the configuration with name and description inside an array.
+          This demo shows, how to create multiple beans of the same type based on the configuration.
+        </em>
+      </p>
+    </div>
+  </body>
+</html>
diff --git a/src/main/resources/view.html b/src/main/resources/view.html
deleted file mode 100644 (file)
index 2b66bb5..0000000
+++ /dev/null
@@ -1,22 +0,0 @@
-<!DOCTYPE HTML>
-<html xmlns:th="http://www.thymeleaf.org" th:replace="~{layout :: pagelayout(~{:: title}, ~{:: h1}, ~{:: div.card-text})}">
-  <head>
-    <title th:text="${name}">SITE-TEMPLATE</title>
-    <link rel="stylesheet" href="https://stackpath.bootstrapcdn.com/bootstrap/4.5.2/css/bootstrap.min.css">
-    <meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
-  </head>
-  <body>
-    <h1 th:text="${name}">SITE</h1>
-    <div class="card-text">
-      <p th:text="${description}">DESCRIPTION</p>
-    </div>
-    <div class="card-text">
-      <p>
-        <em>
-          Each site is defined in the configuration with name and description inside an array.
-          This demo shows, how to create multiple beans of the same type based on the configuration.
-        </em>
-      </p>
-    </div>
-  </body>
-</html>