【发布时间】:2014-11-08 18:22:09
【问题描述】:
在 /WEB-INF/decorate/decorate.html 中,我想使用一些 thymeleaf 标签库,例如“th:text”。
<html>
<head>
<title><sitemesh:write property='title'/></title>
<sitemesh:write property='head'/>
</head>
<body>
<p th:text="${message}">message</p>
<sitemesh:write property='body'/>
</body>
</html>
你好.html
<html>
<head>
<title>test</title>
</head>
<body>
Hello world
</body>
</html>
返回结果是
<html>
<head>
<title>test</title>
</head>
<body>
<p th:text="${message}">message</p>
Hello world
</body>
</html>
thymeleaf 没有解析“消息”。是bug吗?
【问题讨论】: