Thymeleaf works with AsciiDoc
This commit is contained in:
@ -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>
|
||||
|
||||
|
||||
|
Reference in New Issue
Block a user