What is the Thymeleaf fragment?

Sharad Jaiswal
Sharad Jaiswal

Posted On: Mar 16, 2020

 

A fragment is a part of the Thymeleaf template. You can import a part of the template(fragment) to other templates so it allows you to reuse some common parts of a site. To reuse fragments and import it, you have to describe the position of the fragment that you want to import.

    Related Questions

    Please Login or Register to leave a response.

    Related Questions

    Thymeleaf Interview Questions

    What is Thymeleaf?

    Thymeleaf is a server-side modern Java template engine that is used for both the development of web and standalone environments. It brings elegant natural templates to your development workflow which ...

    Thymeleaf Interview Questions

    Enlist some features of Thymeleaf?

    Some of the major features in Thymeleaf are,It works for both web and non-web environments. With Thymeleaf, there is no hard dependency on the Servlet API. It has full and extensible internalizat...

    Thymeleaf Interview Questions

    In which programming language Thymeleaf is Written in?

    The Thymeleaf is written in Java programming language....