본문 바로가기

Server Programming/Spring Boot Full-Stack Programming

[스프링 풀스택 클론 코딩] 타임리프의 fragment 기능

반응형

https://www.thymeleaf.org/doc/articles/thymeleaf3migration.html

 

Thymeleaf 3 ten-minute migration guide - Thymeleaf

Thymeleaf 3 replaces the set of template modes from previous versions. The new template modes are: There are two markup template modes (HTML and XML), three textual template modes (TEXT, JAVASCRIPT and CSS) and a no-op template mode (RAW). The HTML templat

www.thymeleaf.org

thmleaf의 fragment 기능을 사용해서  중복 코드를 제거한다.

https://github.com/thymeleaf/thymeleaf/issues/451

 

[MAJOR FEAT] Fragment Expressions · Issue #451 · thymeleaf/thymeleaf

Building on the idea explained at #180, Thymeleaf 3.0 will introduce a new type of simple expressions for the Thymeleaf Standard Expression engine. These expressions are called Fragment Expressions...

github.com

 

th:fragment

//정의



th:insert
//삽입
th:replace
//교체

 

반응형