Thymeleaf
https://dpaste.com/2SNR9L2ZZЭтот код работает. Текст как <p> я вывел для целей дебага. Переменная содержит 'holmes'. В результате дебажный вывод:
<p>themes/holmes/general/footer::footer(theme=holmes)</p>
Я надеялся, что закомментированный код заработает. Но нет.
Исключение:
org.thymeleaf.exceptions.TemplateInputException: Error resolving template ['themes/' + ${theme} + '/general/header], template might not exist or might not be accessible by any of the configured Template Resolvers (template: "themes/holmes/posts/postList" - line 14, col 9)
Помогите мне, пожалуйста, понять, что здесь не так и почему? И как исправить?