Potential typo in thymeleaf tutorial (8.1 Including template fragments)

classic Classic list List threaded Threaded
1 message Options
Reply | Threaded
Open this post in threaded view
|

Potential typo in thymeleaf tutorial (8.1 Including template fragments)

omonsees
Hi all!

In section 8.1 template fragment inclusion is explained.

https://www.thymeleaf.org/doc/tutorials/2.1/usingthymeleaf.html#template-layout


The first example declares a fragment  of type <div> as th:fragment="copy".

The fragment is then included by <div th:include="footer :: copy"></div>.
Shouldnt it be <div th:include="div :: copy"></div> ?

Maybe someone could fix this, if it is indeed wrong.

Thanx and regards!