Browse Source

Improve sample to use fragment expression by thymeleaf 3

Avoid repeated title text making use of capabilities in thymeleaf 3.

Closes gh-9561
pull/9554/head
Eddú Meléndez 9 years ago committed by Stephane Nicoll
parent
commit
b1f96a4641
  1. 2
      spring-boot-samples/spring-boot-sample-web-ui/src/main/resources/templates/messages/form.html
  2. 2
      spring-boot-samples/spring-boot-sample-web-ui/src/main/resources/templates/messages/list.html
  3. 2
      spring-boot-samples/spring-boot-sample-web-ui/src/main/resources/templates/messages/view.html

2
spring-boot-samples/spring-boot-sample-web-ui/src/main/resources/templates/messages/form.html

@ -1,6 +1,6 @@ @@ -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>

2
spring-boot-samples/spring-boot-sample-web-ui/src/main/resources/templates/messages/list.html

@ -1,6 +1,6 @@ @@ -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>

2
spring-boot-samples/spring-boot-sample-web-ui/src/main/resources/templates/messages/view.html

@ -1,6 +1,6 @@ @@ -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…
Cancel
Save