Skip to content

Instantly share code, notes, and snippets.

@CleysonPH
Created April 9, 2021 19:03
Show Gist options
  • Save CleysonPH/7e394b08bddf9505fa891338501e64de to your computer and use it in GitHub Desktop.
Save CleysonPH/7e394b08bddf9505fa891338501e64de to your computer and use it in GitHub Desktop.
<!DOCTYPE html>
<html lang="pt-br">
<head>
<title>Thymeleaf - Fragments</title>
</head>
<body>
<!-- Com th:insert -->
<div th:insert="~{cabecalho :: cabecalho}"></div>
<!-- Com th:replace -->
<div th:replace="~{cabecalho :: cabecalho}"></div>
<!-- Com th:include -->
<div th:include="~{cabecalho :: cabecalho}"></div>
<p>Conteúdo do Template home</p>
</body>
</html>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment