Thymeleaf guide

Thymeleaf is a Java XML/XHTML/HTML5 template engine that can work both in web (servlet-based) and non-web environments. It is better suited for serving XHTML/HTML5 at the view layer of MVC-based web applications, but it can process any XML file even in offline environments.

It is one of supported by Sping Boot template engines.

One of the advantages is that Thymeleaf mostly are used additional attributes, not tags. So you can check how look page in browser without deploing application.

<!DOCTYPE html>
<html th:lang="${pageData.content.lang}">
    <meta charset="UTF-8">


<th:block th:replace="/content/fragments/top_header.html :: topHeaderDefault()"></th:block>
<div class="kcms-main flex-row">
<div class="kcms-left"></div>
    <div class="kcms-center flex-grow-1 p-4 flex-column">
            <h1 th:text="${pageData.content.title}" style="text-align: center;">default header</h1>
    <div class="kcms-right"> </div>