The first release (1.0.0-beta1) for the new thymeleaf-extras-springsecurity "extras" module has just been released!
This module includes a Dialect that provides you with attributes and expression objects mimicing the capabilities of the Spring Security JSP taglib, thus allowing you to use Spring Security's features in a much more integrated fashion inside your templates.
<div sec:authorize="hasRole('ROLE_ADMIN')">
This content is only shown to administrators.
</div>
See the DZone announcement here:
http://www.dzone.com/links/thymeleaf_now_has_spring_security_integration.htmlSee the project's GitHub page here:
https://github.com/thymeleaf/thymeleaf-extras-springsecurity3See the Thymeleaf website here:
http://www.thymeleaf.orgRegads,
Daniel.