Demonstration of multiple dynamically instantiated beans
[demos/multiple-beans] / src / main / resources / templates / site.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 th:text="${name}">SITE-TEMPLATE</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 th:text="${name}">SITE</h1>
10     <div class="card-text">
11       <p th:text="${description}">DESCRIPTION</p>
12     </div>
13     <div class="card-text">
14       <p>
15         <em>
16           Each site is defined in the configuration with name and description inside an array.
17           This demo shows, how to create multiple beans of the same type based on the configuration.
18         </em>
19       </p>
20     </div>
21     <div class="card-text">Back <a href="#" th:href="@{/}">Home</a></div>
22   </body>
23 </html>