My Travle Map

thymeleaf 이용 공통 Layout 구조 구성

오선지♬ 2023. 10. 3. 13:25
728x90
반응형
<!DOCTYPE html>
<html lang="ko"  
	xmlns:th="http://www.thymeleaf.org" 
	xmlns:layout="http://www.ultraq.net.nz/thymeleaf/layout">
<head>
	<meta charset="utf-8">
	<title>Insert title here</title>
	<!-- + base css -->
	<th:block layout:fragment="pageStyle"></th:block> 
</head>
<body>
	<th:block layout:fragment="leftSlide"></th:block>
    
	<header>
	</header>
	
	<!-- BEGIN Page Content -->
	<th:block layout:fragment="pageMain"></th:block>
    <!-- END Page Content -->
	
	<footer>
	</footer>
	
	
	<!-- + base script -->
	<th:block layout:fragment="pageScript"></th:block>
</body>
</html>
728x90
반응형