Demonstration of multiple dynamically instantiated beans
[demos/multiple-beans] / 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..cb75a1d
--- /dev/null
@@ -0,0 +1,25 @@
+<!DOCTYPE HTML>
+<html xmlns:th="http://www.thymeleaf.org" th:replace="~{layout :: pagelayout(~{:: title}, ~{:: h1}, ~{:: div.card-text})}">
+  <head>
+    <title>Home</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>Home</h1>
+    <div class="card-text">
+      <ul>
+        <li th:each="site : ${sites}">
+          <a href="#" th:href="'/' + ${site}" th:text="${site}">SITE</a>
+        </li>
+      </ul>
+    </div>
+    <div class="card-text">
+      <p>
+        <em>
+          This page links to the pages, that are served by the dynamically created beans.
+        </em>
+      </p>
+    </div>
+  </body>
+</html>