ultraq / thymeleaf-layout-dialect

A dialect for Thymeleaf that lets you build layouts and reusable templates in order to improve code reuse

Home Page:https://ultraq.github.io/thymeleaf-layout-dialect/

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

how to set the default layout

yuzd opened this issue · comments

<html lang="en" xmlns:th="http://www.thymeleaf.org" layout:decorator="layout/default" xmlns:layout="http://www.ultraq.net.nz/thymeleaf/layout">

<th:block layout:fragment="content">

```````````my child page content```````````````````````

</th:block>
</html>



in my child pages , i must do code layout:decorator and set layout:fragment for every page.
i do not want to code that for every child page .
can i code in server(Controller) side.?

@yuzd why did you close the issue ? Did you find a way to do this ?

No solution was found, but no one answered, so I turned it off