A
A
Anton Ivanov2020-01-27 12:52:51
Java
Anton Ivanov, 2020-01-27 12:52:51

Is it possible to specify default layout:decorate in thymeleaf?

Hello.

Actually, such a question.

Spring 5 + Thymeleaf

Is it possible to specify one global "top-level html" for the application, as if all views have it

<html xmlns="http://www.w3.org/1999/xhtml"
      xmlns:th="http://www.thymeleaf.org"
      xmlns:layout="http://www.ultraq.net.nz/thymeleaf/layout"
      layout:decorate="~{default_layout}">


Thank you.

Answer the question

In order to leave comments, you need to log in

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question