2 <html xmlns:th="http://www.thymeleaf.org">
4 <title>Template: view</title>
5 <meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
9 <div th:switch="${answer}">
11 <strong>What is the answer to the ultimate question of life, the universe and everything?</strong>
14 <li>Presented answer: <strong th:text="${answer}">ANSWER</strong></li>
15 <li>Outcome: <strong th:text="${outcome.get()}">OUTCOME</strong></li>
19 <form action="#" th:action="@{/}" method="get">
21 <label for="answer">Answer:</label>
22 <input type="text" name="answer" value="42" th:value="${answer}"/>
23 <button type="submit">Submit</button>