-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
3 changed files
with
32 additions
and
0 deletions.
There are no files selected for viewing
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
13 changes: 13 additions & 0 deletions
13
.../thymeleaf-basic/src/main/resources/templates/template/layoutExtend/layoutExtendMain.html
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
<!DOCTYPE html> | ||
<html th:replace="~{template/layoutExtend/layoutFile :: layout(~{::title}, ~{::section})}" | ||
xmlns:th="http://www.thymeleaf.org"> | ||
<head> | ||
<title>메인 페이지 타이틀</title> | ||
</head> | ||
<body> | ||
<section> | ||
<p>메인 페이지 컨텐츠</p> | ||
<div>메인 페이지 포함 내용</div> | ||
</section> | ||
</body> | ||
</html> |
14 changes: 14 additions & 0 deletions
14
mvc2/thymeleaf-basic/src/main/resources/templates/template/layoutExtend/layoutFile.html
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,14 @@ | ||
<!DOCTYPE html> | ||
<html th:fragment="layout (title, content)" xmlns:th="http://www.thymeleaf.org"> | ||
<head> | ||
<title th:replace="${title}">레이아웃 타이틀</title> | ||
</head> | ||
<body> | ||
<h1>레이아웃 H1</h1> | ||
<div th:replace="${content}"> | ||
<p>레이아웃 컨텐츠</p> | ||
</div> | ||
<footer> 레이아웃 푸터 | ||
</footer> | ||
</body> | ||
</html> |