Thymeleaf 3 replacement for th:include

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

Thymeleaf 3 replacement for th:include

xtian
The docs state that th:include is deprecated in Thymeleaf 3.
How do I achieve the same functionality?

In my specific case I want to include the body content of another generic full html file. If I use "somefile::body" as a selector for th:replace or th:insert, the <body> tag is inserted too. This wouldn't happen with th:include. Maybe I just need the proper selector syntax?
Loading...