i understand how th:if works html templates, don't find clue on how when expect plain text (use case : plain text e-mail templating).
so far tried :
<html xmlns:th="http://www.thymeleaf.org" th:inline="text" th:remove="tag"> dear [[${contact.firstname}]] [[${contact.lastname}]], alert triggered @ location: [[${account.address}]] <span th:if=\"${videolink}\">to view security camera recordings, please click on [[${videolink]]</span> </html>
it works... result contains tag. idea of i'm doing wrong ?
thanks, cyril
thymeleaf 2.1 has th:block
tag, container attributes. conditional text can done this:
<th:block th:if="${videolink}">to view your...</th:block>
Comments
Post a Comment