thymeleaf - layout
This commit is contained in:
@@ -0,0 +1,11 @@
|
|||||||
|
<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>
|
||||||
|
</html>
|
||||||
@@ -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>
|
||||||
Reference in New Issue
Block a user