[http://www.thymeleaf.org/doc/usingthymeleaf.html#inlining]
このやり方はどうでしょうか。
これだと、
lang
1<div>
2 <p><span th:text="${object.value}" th:remove="tag"/> as value <p>
3 <p><span th:text="${object.address}" th:remove="tag"/> as address <p>
4 <p><span th:text="${object.tel}" th:remove="tag"/> as tel <p>
5</div>
このような書き方をしなくても、
lang
1<div th:inline="text">
2 <p>[[${object.value}]] as value <p>
3 <p>[[${object.address}]] as address <p>
4 <p>[[${object.tel}]] as tel <p>
5</div>
こんな風に書くことができるので、楽かもしれません。
ただしタグの属性に書く場合とことなり、これだとhtmlを直接編集するときに面倒かも知れません。
バッドをするには、ログインかつ
こちらの条件を満たす必要があります。