【发布时间】:2017-12-24 14:33:43
【问题描述】:
http://www.thymeleaf.org/doc/tutorials/3.0/usingthymeleaf.html#template-layout docs 说:
上面的代码定义了一个名为 copy 的片段,我们可以使用 th:insert 或 th:replace 属性之一轻松将其包含在主页中(还有 th:include,尽管不再推荐使用它,因为Thymeleaf 3.0)。
我个人发现th:insert 是实现模板的唯一可能方式。
那是什么意思? th:insert 已弃用或将在未来版本中删除?或者这是不好的做法?
是什么让th:insert 名声不好?
【问题讨论】:
标签: thymeleaf