Created
April 9, 2021 19:03
-
-
Save CleysonPH/7a266556db304e26ee50869784f3aeaa to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<!DOCTYPE html> | |
<html lang="pt-br"> | |
<head> | |
<title>Thymeleaf - Fragments</title> | |
</head> | |
<body> | |
<!-- Com th:insert --> | |
<div> | |
<header> | |
<h1>Cabeçalho vindo do Fragment</h1> | |
</header> | |
</div> | |
<!-- Com th:replace --> | |
<header> | |
<h1>Cabeçalho vindo do Fragment</h1> | |
</header> | |
<!-- Com th:include --> | |
<div> | |
<h1>Cabeçalho vindo do Fragment</h1> | |
</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