Commit b1f96a46 authored by Eddú Meléndez's avatar Eddú Meléndez Committed by Stephane Nicoll

Improve sample to use fragment expression by thymeleaf 3

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

Closes gh-9561
parent aac80e0b
<!DOCTYPE html> <!DOCTYPE html>
<html xmlns:th="http://www.thymeleaf.org"> <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> <title>Messages : Create</title>
</head> </head>
<body> <body>
......
<!DOCTYPE html> <!DOCTYPE html>
<html xmlns:th="http://www.thymeleaf.org"> <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> <title>Messages : View all</title>
</head> </head>
<body> <body>
......
<!DOCTYPE html> <!DOCTYPE html>
<html xmlns:th="http://www.thymeleaf.org"> <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> <title>Messages : View</title>
</head> </head>
<body> <body>
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment