-
Rich HTML email in Spring with Thymeleaf (3 messages)
- Posted by: Daniel Fernandez
- Posted on: February 27 2012 15:18 EST
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.htmlThreaded Messages (3)
- Perfect Framework by Raman Sikamani on February 28 2012 15:44 EST
- Rich HTML email in Spring with Thymeleaf by Grzegorz Grzybek on February 29 2012 06:49 EST
- Rich HTML email in Spring with Thymeleaf "Error in running it" by hadi jeddizahed on April 27 2012 15:15 EDT
-
Perfect Framework[ Go to top ]
- Posted by: Raman Sikamani
- Posted on: February 28 2012 15:44 EST
- in response to Daniel Fernandez
On time usefull!!!
Thanks so much!!!
-
Rich HTML email in Spring with Thymeleaf[ Go to top ]
- Posted by: Grzegorz Grzybek
- Posted on: February 29 2012 06:49 EST
- in response to Daniel Fernandez
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!
With JSP in large projects I've always ended with many tag files representing some common "controls". With ThymeLeaf I have one file _controls.html which: 1) can be opened in browser, 2) contains *all* controls, 3) uses proper CSS and JavaScript (JQuery works perfectly!).
regards
Grzegorz Grzybek
-
Rich HTML email in Spring with Thymeleaf "Error in running it"[ Go to top ]
- Posted by: hadi jeddizahed
- Posted on: April 27 2012 15:15 EDT
- in response to Daniel Fernandez
Hi,
i downloaded the example and run it but not work correctly. The "Http status 404 " error appear when i running it. please help me.
thanhs