Skip to content

Latest commit

 

History

History
32 lines (25 loc) · 702 Bytes

springboot-thymeleaf.md

File metadata and controls

32 lines (25 loc) · 702 Bytes

Thymeleaf

  • A java templating engine
  • Commonly used to generate HTML views for web apps
  • Can use outside of web apps
  • For web apps thymeleaf has .html extension

Thymeleaf Processing

  • Processed on the server

Thymeleaf VS JSP

  • JSP is suitable only for web applications
  • Thymeleaf can be used both for web and non web applications

Use Cases

Non Web

  • Email Templates
  • CSV Templates
  • PDF Templates

Web

  • Web View Templates

Template Location

  • In Springboot thymeleaf is placed in src/main/resources/templates

Features

  • Looping & Conditionals
  • CSS & JS Integration
  • Template layouts & fragments

Resources

Thymeleaf Documentation