Thymeleaf works with AsciiDoc

This commit is contained in:
Nanne Baars
2016-05-15 10:38:22 +02:00
parent e8628599fe
commit 63398aaf6d
13 changed files with 375 additions and 125 deletions

View File

@ -3,10 +3,20 @@
<!-- Model is setup in the class StartLesson -->
<div id="lessonInstructions" th:utext="${instructions}"></div>
<div th:switch="${migrated}">
<div th:case="false" id="lessonInstructions" th:utext="${instructions}"></div>
<div th:case="true" id="lessonInstructions"></div>
</div>
<div id="message" class="info" th:utext="${message}"></div>
<br/>
<div th:utext="${lesson.content}"></div>
<div th:replace="lesson:__${lesson.class.simpleName}__"></div> <!-- __lesson__ makes Thymeleaf dynamic and calling the Thymeleaf resolver -->
<div th:switch="${migrated}">
<div th:case="false" th:utext="${lesson.content}"></div>
<div th:case="true" th:replace="lesson:__${lesson.class.simpleName}__"></div>
</div>
</html>