th:fragment1 [Thymeleaf] 자체 태그 (th:block , th:inline, th:fragment) 1. th:block2. th:inline3. th:fragment th:block 태그와 같이 블록단위로 묶는 역할th:block와 th:each를 활용하여, 반복적으로 작성이 가능하다또는 th:if를 활용하여, 조건부로도 사용이 가능하다 User : User : th:inlinejavascript, css ,text 을 이스케이프 처리가 되어, 안전하게 렌더링을 진행한다th:inline="javascript" 의 경우 변수명과 값에 "(큰따옴표) , json 자동 변환 등을 지원한다th:inline 이 없을경우, (출력결과)var username = userAvar user =Controller.User(u.. 2024. 10. 17. 이전 1 다음