Bringing new life to the view layer of Spring web apps with Thymeleaf
summary
Thymeleaf 3.0 is a major rewrite (about 85% new core code, ~60,000 LOC) with 75,000 downloads for the core and an estimated 95% usage inside Spring MVC. It replaces a DOM-based engine with an event-based parser to cut memory and latency, adds true HTML5 parsing (no XMLization), first-class inlining, JS/CSS/text template modes, fragment parameters, decoupled templates, reactive-friendly buffered and data-driven output modes, and shows large rendering and memory improvements (and yes the build had ~4,000 tests and a joking 220 L coffee footprint).
AI-written summary · about
chapters (24)
- 0:00Intro
- 1:00What is Thymeleaf?
- 2:59What does it look like?
- 5:00Designers(?) create HTML...
- 6:46So what about style changes?
- 8:35The trick
- 9:56HTML5 allows custom attributes
- 10:36Now we can prototype!
- 11:25Yet prototyping is very optional
- 13:22Page composition/layout
- 14:45Markup selectors
- 15:34Fragments with parameters
- 16:47Extending Thymeleaf
- 18:17Testing the view layer
- 19:49Thymeleaf 3.0 in space and time
- 21:26A new architecture
- 23:23Improved performance
- 24:05Full HTML5 support
- 25:59Improved inlining
- 28:20JavaScript natural templates
- 29:30Fragment expressions
- 31:06Decoupled templates
- 32:52Reactive friendliness
- 36:28Reactive-friendly operation modes
related talks
48mGetting Thymeleaf ready for Spring 5 and Reactive
34mModern frontends using Spring Boot and Thymeleaf with htmx
46mModern Frontends with HTMX, Thymeleaf and Spring Boot
23mPhil Webb at SpringOne Platform 2017
41mRapid server side full stack web development with ViewComponents and htmx
44mPhoenix: A template engine for Spring
01h 28mIntro to Spring Boot for the web tier
01h 05mIsomorphic templating with Spring Boot, Nashorn and React
