Skip to content

Commit

Permalink
Improve sample to use fragment expression by thymeleaf 3
Browse files Browse the repository at this point in the history
Avoid repeated title text making use of capabilities in thymeleaf 3.

Closes spring-projectsgh-9561
  • Loading branch information
eddumelendez authored and snicoll committed Jun 22, 2017
1 parent aac80e0 commit b1f96a4
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
@@ -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>
Expand Down
Original file line number Diff line number Diff line change
@@ -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>
Expand Down
Original file line number Diff line number Diff line change
@@ -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>
Expand Down

0 comments on commit b1f96a4

Please sign in to comment.