30- Fundamentals of Thymeleaf
What is thymeleaf?
Thymeleaf is a modern server-side Java template engine for both web and standalone environments.
OR
Thymeleaf is a Java library.
It is an XML/XHTML/HTML5 template engine able to apply a set of transformations to template files in order to display data and/or text produced by your applications.
OR
In simple terms
Thymeleaf is a template engine that helps in integration(connecting) of Java with (XML,Valid XML,XHTML,Valid XHTML,HTML5,Legacy HTML5) with ease...
What kind of templates can thymeleaf process?
Out-of-the-box, Thymeleaf allows you to process six kinds of templates, each of which is called a Template Mode:
--> HTML
--> XML
--> TEXT
--> JAVASCRIPT
--> CSS
--> RAW
What is Thymeleaf template?
Basically HTML page with Thymeleaf expressions..
These thymeleaf expressions can access java code ,objects ,springbeans ,etc
What is thymeleaf engine?
Thymeleaf engine will parse Thymeleaf Template .
It uses java model data to replace the positions marked on thymeleaf template to create a new text in html..
NOTE - This will make more sense in practical rather than theory
Where is a thymeleaf template processed?
In a web app thymeleaf template is processed on the server.
Results are included in the HTML and returned to the browser
Comments
Post a Comment