[Thymeleaf] 타임리프 란?


[Thymeleaf] 타임리프 란?

1. 타임리프 란? 백엔드 서버에서 HTML을 동적으로 렌더링 하는 용도로 사용됨 페이지가 어느정도 정적이로 빠른 생산성이 필요한 경우 백엔드 개발자가 개발해야하는 일이 생긱는데 이때 좋은 선택지 2. 사용법 Gradle - build.gradle implementation 'org.springframework.boot:spring-boot-starter-thymeleaf' 또는 Maven - pom.xml org.springframework.boot spring-boot-starter-thymeleaf 타임리프를 사용할 html 파일에 다음과 같이 태그 수정 3. 문법 대부분의 html 속성을 th:xxx 로 변경 ex: th:text="${변수명}" 표현 설명 예제 @{ ... } URL 링크 표현식..


원문링크 : [Thymeleaf] 타임리프 란?