mirror of
https://github.com/spring-projects/spring-boot.git
synced 2024-09-03 04:26:12 +08:00
Improve sample to use fragment expression by thymeleaf 3
Avoid repeated title text making use of capabilities in thymeleaf 3. Closes gh-9561
This commit is contained in:
parent
aac80e0b02
commit
b1f96a4641
@ -1,6 +1,6 @@
|
||||
<!DOCTYPE html>
|
||||
<html xmlns:th="http://www.thymeleaf.org">
|
||||
<head th:replace="fragments :: head(title='Messages : Create')">
|
||||
<head th:replace="fragments :: head(title=~{::title/text()})">
|
||||
<title>Messages : Create</title>
|
||||
</head>
|
||||
<body>
|
||||
|
@ -1,6 +1,6 @@
|
||||
<!DOCTYPE html>
|
||||
<html xmlns:th="http://www.thymeleaf.org">
|
||||
<head th:replace="fragments :: head(title='Messages : View all')">
|
||||
<head th:replace="fragments :: head(title=~{::title/text()})">
|
||||
<title>Messages : View all</title>
|
||||
</head>
|
||||
<body>
|
||||
|
@ -1,6 +1,6 @@
|
||||
<!DOCTYPE html>
|
||||
<html xmlns:th="http://www.thymeleaf.org">
|
||||
<head th:replace="fragments :: head(title='Messages : View')">
|
||||
<head th:replace="fragments :: head(title=~{::title/text()})">
|
||||
<title>Messages : View</title>
|
||||
</head>
|
||||
<body>
|
||||
|
Loading…
Reference in New Issue
Block a user