I just decided to start a small project with spring-boot and thymeleaf.
thimeleaf itself looks amazing so far, but my question is what is the best way to get it, e.g. layout.html, which brings a basic page layout
as
- general css inclusions
- general inclusions js
- basic structure (e.g., column layout 2/3)
which is wrapped around the contents of individual pages (viewing a blog post, viewing comments, viewing images in a gallery, etc.), that I donβt need to transfer general material to all templates.
so far, the only way I've found is to use fragmented inclusions, but I'm not sure if this is the right approach to get the full structure around the template that I want to display for the current request.
how can i get the <div class="content"></div> arround my template?
Hope someone can help.
early
Dodge source share