Separated layout from content with Thymeleaf
[demos/testing] / src / main / resources / templates / home.html
diff --git a/src/main/resources/templates/home.html b/src/main/resources/templates/home.html
new file mode 100644 (file)
index 0000000..6076f98
--- /dev/null
@@ -0,0 +1,13 @@
+<!doctype html>
+<html lang="en" xmlns:th="http://www.thymeleaf.org"  th:replace="~{layout :: pagelayout(~{:: title}, ~{:: h1}, ~{:: div.card-text})}">
+  <head>
+    <meta charset="utf-8">
+    <title>Shows Remote-Content</title>
+  </head>
+  <body>
+    <h1>Fetched Data</h1></div>
+    <div class="card-text">
+      <pre th:text="${text}">TEXT</pre>
+    </div>
+  </body>
+</html>