Thymeleaf is an elegant Java XML / XHTML / HTML5 template engine that works as a complete substitute for JSP with Natural Templating abilities (templates are displayable pages). It provides specific Spring MVC integrations and can be used online --in web servers-- as well as offline. A complete list of features can be read here: http://www.thymeleaf.org/features.html Creating rich HTML email is one of the offline applications of template engines, something JSP is usually not considered valid for because of its thight dependency on the servlet-api (usually Apache Velocity is used for this). Nevertheless, Thymeleaf can build on its offline capabilities to enable users to create feature-rich HTML email templates with expressions, internationalization, date/number formatting, etc. And what's more: thanks to its 'Natural Templating' abilities, it allows these email templates to be designed by UI designers as usual HTML pages, and continue to be displayable on a browser after being converted into working templates. See the full article here: http://www.thymeleaf.org/springmail.html
- Posted by: Daniel Fernandez
- Posted on: February 27 2012 15:18 EST
On time usefull!!!
Thanks so much!!!
I'd like to say that this style of templating is really, really beautiful! Try once and you'd never want to use JSP (and even Velocity) again!
i downloaded the example and run it but not work correctly. The "Http status 404 " error appear when i running it. please help me.