В шаблоне header
У меня
<head th:fragment="common_header(title)">
<title th:replace="${title}">Default title</title>
<meta charset="utf-8" />
...
</head>
Я пытался использовать литералы в параметре:
<head th:replace="~{header::common_header(title='This should be real title')}">
<title>Just for template's sake...</title>
<meta charset="utf-8" />
...
</head>
но все, что я получаю, это
org.thymeleaf.exceptions.TemplateInputException: Error resolving template "This should be real title", template might not exist or might not be accessible by any of the configured Template Resolvers (template: "header" - line 4, col 9)
Что я делаю не так? Использование _
(токен без операции) дает Default title
(как и ожидалось)