-
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
29 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/layout/base.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 @@ | ||
<html xmlns:th="http://www.thymeleaf.org"> | ||
<head th:fragment="common_header(title,links)"> | ||
|
||
<title th:replace="${title}">레이아웃 타이틀</title> | ||
|
||
<!-- 공통 --> | ||
<link rel="stylesheet" type="text/css" media="all" th:href="@{/css/awesomeapp.css}"> | ||
<link rel="shortcut icon" th:href="@{/images/favicon.ico}"> | ||
<script type="text/javascript" th:src="@{/sh/scripts/codebase.js}"></script> | ||
|
||
<!-- 추가 --> | ||
<th:block th:replace="${links}" /> | ||
</head> |
11 changes: 11 additions & 0 deletions
11
thymeleaf-basic/src/main/resources/templates/template/layout/layoutMain.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,11 @@ | ||
<!DOCTYPE html> | ||
<html xmlns:th="http://www.thymeleaf.org"> | ||
<head th:replace="template/layout/base :: common_header(~{::title},~{::link})"> | ||
<title>메인 타이틀</title> | ||
<link rel="stylesheet" th:href="@{/css/bootstrap.min.css}"> | ||
<link rel="stylesheet" th:href="@{/themes/smoothness/jquery-ui.css}"> | ||
</head> | ||
<body> | ||
메인 컨텐츠 | ||
</body> | ||
</html> |