Jasper1 학원 수업 50일차 221101 9-10 레이아웃 역할 th:fragment ${} : value ~{} : fragment (/springWebSample/src/main/resources/templates/index.html) 1. index.html에 있는 head와 main을 layout이라는 이름으로 layout/user-layout.html으로 보냅니다 (this는 생략가능) (/springWebSample/src/main/resources/templates/layout/user-layout.html) header태그로 삽입됩니다. 메인태그로 대체됩니다. footer태그가 삽입됩니다. 2. user-layout.html에서 페이지를 완성한 후 다시 index.html로 보내 파일을 완성시킵니다 10-11.5 JSP를 쓴다고 .. 2023. 1. 4. 이전 1 다음