본문 바로가기
IT/Thymeleaf

[Thymeleaf] - 타임리프 th:block, th:replace, th:fragment 사용법 및 문법

by 차이나는 개발자 2022. 1. 25.
728x90
반응형

#타임리프 th:block, th:replace, th:fragment 사용법 및 문법

 

 

#th:block, th:replace, th:fragment

 

// 조각파일
<th:block th:fragment="main_head">

// 조각파일 사용 ( ::뒤 = 조각파일 th:fragment 값)
<th:block th:replace="include/main_head :: main_head"></th:block>

 

 

 

728x90
반응형

댓글