convert HTML to thymeleaf Tags Add

 <!DOCTYPE html>

        to

<html lang="en" xmlns:th="http://www.thymeleaf.org">

--------------------------------------------------------------------------------------------

BASE.HTML

<html lang="en" xmlns:th="http://www.thymeleaf.org" th:fragment="layout(content)"

 xmlns:sec="https://www.thymeleaf.org/thymeleaf-extras-springsecurity5">

<div th:replace="${content}" class="main">

  example.html

<html lang="en" xmlns:th="http://www.thymeleaf.org" th:replace="(~{base::layout(~{::section})})" xmlns:sec="https://www.thymeleaf.org/thymeleaf-extras-springsecurity5" >


<section>

................................................................

</section>

-----------------------------------------------------------------------------------------------






Comments