2016-10-09 5 views
1

Thymeleaf方言の中でThymeleaf方言を使いたいができない。私はこれを試してみたが、同様に動作しませんでした:h2Thymeleaf方言の中のThymeleaf方言

<h2 th:text="|${response.name} has: |"> 
Dunie has: 
    <span th:text="|-${response.size}-|" class="paleo">-4-</span> 
</h2> 

th:textは、その中にすべてのものを削除します。レンダリングした後、そのようなものを得たいと思っています:

<h2> 
Philie has: 
    <span class="paleo">-3-</span> 
</h2> 

私はどのようにして目標を達成できますか?

答えて

関連する問題