Umstellung auf Thymeleaf: Schritt 1 - Thymeleaf zum Laufen bekommen
[website] / src / main / webapp / thymeleaf / 404.html
diff --git a/src/main/webapp/thymeleaf/404.html b/src/main/webapp/thymeleaf/404.html
new file mode 100644 (file)
index 0000000..ab9c294
--- /dev/null
@@ -0,0 +1,14 @@
+<!DOCTYPE html>
+<html xmlns="http://www.w3.org/1999/xhtml" xmlns:th="http://www.thymeleaf.org">
+  <head>
+    <title th:replace="views/404 :: title">TITLE</title>
+    <meta charset="UTF-8"/>
+    <meta name="viewport" content="width=device-width"/>
+  </head>
+  <body>
+    <div th:replace="templates/header :: fragment">HEADER</div>
+    <h1 th:include="views/404 :: title">TITLE</h1>
+    <div th:replace="views/404 :: content">CONTENT</div>
+    <div th:replace="templates/footer :: fragment">FOOTER</div>
+  </body>
+</html>