Demonstration of multiple dynamically instantiated beans
[demos/multiple-beans] / src / main / resources / templates / home.html
1 <!DOCTYPE HTML>
2 <html xmlns:th="http://www.thymeleaf.org" th:replace="~{layout :: pagelayout(~{:: title}, ~{:: h1}, ~{:: div.card-text})}">
3   <head>
4     <title>Home</title>
5     <link rel="stylesheet" href="https://stackpath.bootstrapcdn.com/bootstrap/4.5.2/css/bootstrap.min.css">
6     <meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
7   </head>
8   <body>
9     <h1>Home</h1>
10     <div class="card-text">
11       <ul>
12         <li th:each="site : ${sites}">
13           <a href="#" th:href="'/' + ${site}" th:text="${site}">SITE</a>
14         </li>
15       </ul>
16     </div>
17     <div class="card-text">
18       <p>
19         <em>
20           This page links to the pages, that are served by the dynamically created beans.
21         </em>
22       </p>
23     </div>
24   </body>
25 </html>