http://www.thymeleaf.org/doc/tutorials/3.0/usingthymeleaf.html#template-layout文檔說:爲什麼th:自從Thymeleaf 3.0以後不再推薦使用include?
上面的代碼定義了一個片段稱爲複製,我們可以在我們的主頁使用日的一個輕鬆包括:插入或日:更換屬性(還TH:包括,但其使用不再推薦,因爲Thymeleaf 3.0)。
我個人發現th:insert
實現模板的唯一可能方式。
那麼這是什麼意思? th:insert
已被棄用或將來會被刪除?或者這是不好的做法?
是什麼使th:insert
聲譽不好?