By dfernandez
via thymeleaf.org
Published: Jul 18 2011 / 06:39
Thymeleaf 1.0.0 has just been published. Thymeleaf is a java XML / XHTML / HTML5 template engine with an elegant syntax that conforms a perfect substitute for JSP and JSTL, especially in Spring MVC applications. Besides, Thymeleaf offers natural templating abilities, allowing your templates to be perfectly displayable web prototypes (even without starting up your server!)
Tweet
SaveShareSend
Tags: announcement, java, open source, tools
Comments
RawThinkTank replied ago:
Wow , so many votes up for an technology that wastes cpu by unnecessarily generating pages each and every time, hats off to you humans.
kitdavies replied ago:
kitdavies replied ago:
Well that was crap. What I meant to say was:
> * Configurable, high performance parsed template caché that reduces input/output to the minimum.
Static parts are generated once. I'm not sure how you could do it any other way in a *template* framework
RawThinkTank replied ago:
Obviously we should move away from template frameworks
schoenobates.myopenid.com replied ago:
to what ?
RawThinkTank replied ago:
Super fast complied / static pages with Ajax data sources; most browsers allow two server requests.
cluny replied ago:
Super fast compiled / static pages with Ajax that... waste CPU by unnecessarily generating responses to AJAX requests in XML/JSON each and every time? ;-)
Your reasoning seems a little bit gold-hammerish, I have to say. You are right that there are many -not all, just many- scenarios that might benefit from a static-page-everything-ajax approach, but on the other side, think that you would need more powerful and robust clients (which browsers aren't) and that you would be executing many more requests against your servers -one for each dynamic fragment in each page!-, which is worse server-performance-wise than fewer but longer requests. Remember that each request takes a thread at the server to respond...
So yes, template engines are still the answer to a lot of web scenarios. Just not absolutely all of them.
RawThinkTank replied ago:
This is my last post on this one.
If you get this fine, or forget this.
These days these template guys create HUGE pages that take two to 10 minutes to load, they load all the menus , all the data, all the JS files and tons of other files and while we have to wait and watch a blank WHITE screen.
My suggestion to these poorly intelligenated girls is to first load only tags that are gona be visible, then immediately load only that data which be visible in those first tags and then after that load whatever crap you want to.
Unfortunately no one can be told whats wrong with them since they are always ready to justify their crap.
Voters For This Link (47)
Voters Against This Link (0)