AdSense

顯示具有 thymeleaf 標籤的文章。 顯示所有文章
顯示具有 thymeleaf 標籤的文章。 顯示所有文章

2021/6/28

Spring Boot Thymeleaf Layout Dialect簡單範例

Spring Boot Thymeleaf使用Layout Dialect裝飾模板。

2021/6/11

Thymeleaf 取得專案路徑 get context path

Thymeleaf取得context path(專案路徑)的方法如下。

2021/5/29

Thymeleaf th:styleappend 附加 CSS style

Thymeleaf模板頁面使用th:styleappend在HTML標籤既有的style屬性值額外附加其他CSS style。

Thymeleaf th:classappend 附加 CSS class

Thymeleaf模板頁面使用th:classappend在HTML標籤既有的class屬性值額外附加其他class。

2021/5/28

Spring Boot Thymeleaf TODOLIST 範例

使用Spring Boot Thymeleaf搭建TODOLIST應用程式範例。

2021/5/26

Thymeleaf 行內表示式 Expression inlining

Thymeleaf 在模板頁面除了th:text標籤屬性搭配${...}帶入變數外,還可使用行內表示式[[...]]或[(...)]帶入變數。

Spring Boot Thymeleaf 傳入頁面片段參數 fragment parameters

Spring Boot Thymeleaf 使用th:fragment定義頁面片段時可傳入參數。

2021/5/25

Spring Boot Thymeleaf 條件判斷屬性 th:if及th:unless

Spring Boot Thymeleaf 使用th:if及th:unless條件判斷。

2021/5/24

Spring Boot Thymeleaf 使用th:with設定變數 set local variables

p>Spring Boot Thymeleaf 使用th:with設定所屬標籤的的變數。

2021/5/23

2021/5/21

Spring Boot Thymeleaf 取代頁面片段 replace page fragment

Spring Boot Thymeleaf 模板使用th:replace可用指定的頁面中的標籤取代。當多個頁面中有重複出現的部分時(例如logo、header、選單、導覽列,footer區塊)便能利用插入片段的方式來提高維護性,當共同部分需要修改時只要修改被插入的片段即可。

2021/5/20

Spring Boot Thymeleaf i18n多國語言範例

Spring Boot搭配Thymeleaf模板多國語言(i18n)範例。。

Spring Boot Thymeleaf 簡單範例

Spring Boot搭配Thymeleaf模板簡單範例。

AdSense