-
Notifications
You must be signed in to change notification settings - Fork 110
Closed
Description
In my content page content.html
with the layout set to layout.html
I have a title such as:
<title th:text="${user.name}"></title>
In the layout.html
, the title pattern is used as following.
<title layout:title-pattern="$DECORATOR_TITLE - $CONTENT_TITLE">Website Name</title>
When using a normal static<title>User Details</title>
without th:text
the decorator correctly applies the title pattern as <title>Website Name - User Details</title>
while the title with the dynamic th:text
tag decorates the title as <title>User Details</title>
Am I doing this correct or is layout:title-pattern
only able to apply to static title names?