Timeleaf vs Tile

I plan to port the MVC application from Spring 3 to Spring 4 using Spring Boot.

This webapp uses Apache Tiles.

I'm a little confused considering that Thymeleaf seems to be a new standard with Spring, with good integration.

The tiles were sick for customization in this application.

In this application, we have 20 JSP pages.

Questions:

  • Do Timeleaf and Tiles have similar concepts? (engine template?)
  • I saw that Thymeleaf can be used with Tiles ... I don’t see how and why
  • Would it be better to save the Tiles and make it work with the Spring 4 / Boot application?
  • Would it be better to connect Tiles / JSP to Thymeleaf templates?
+5
source share
1 answer

I would suggest eventually porting Tiles to Thymeleaf, but you don't have to do it all at once.

Your interim strategy may be to start using layouts and integrate existing Tiles where it makes sense. The new development may be direct Thymeleaf, and you can fully connect existing tiles when it makes sense to you.

Pay attention to the following article (you can go to the section "Integration of the thimeleaf tile") and the associated github code example.

+2
source

Source: https://habr.com/ru/post/1233132/


All Articles