Thymeleaf 2.1 发布了,Thymeleaf是一个XML/XHTML/HTML5模板引擎,可用于Web与非Web环境中的应用开发。它是一个开源的Java库,基于Apache License 2.0许可,由Daniel Fernández创建,该作者还是Java加密库Jasypt的作者。
该版本包含大量新特性,主要有:
New Features in Thymeleaf Core:
Fragment inclusion:
Same-template fragments
Parameterizable fragment signatures
Expression improvements:
More powerful DOM selector syntax
Literal tokens
Boolean and null literals
Literal substitutions
Protocol-relative URLs
Markup processing improvements:
Parser-level comment blocks
Prototype-only comment blocks
New Standard Dialect features:
Improved th:remove attribute
Synthetic th:block tag
Support for HTML5-friendly attribute and element names
New th:assert for in-template assertions
New th:replace as a synonym of th:substituteby
Reuse variables in th:with
New Features in Spring Integration:
Better integration with Spring features:
More integrated acccess to beans from expressions
Integration of Spring type conversion infrastructure
Spring-resource based template resolver
Ease of use:
Render view fragments directly from controllers
Form error handling:
New th:errorclass for adding CSS class to form fields in error
Additional form validation error reporting options
Security:
Transparent integration with Spring's RequestDataValueProcessor
项目主页:http://www.thymeleaf.org/
下载地址:http://www.thymeleaf.org/download.html
来自:开源中国社区

