Subversion
Written by: Lorna Jane Mitchell
Featured Refcardz: Top Refcardz:
  1. Git
  2. DNS
  3. Data Mining
  4. Spring Data
  5. Subversion
  1. Spring Data
  2. Subversion
  3. Spring Config.
  4. Spring Annotations
  5. Data Mining

Link Details

Link 636777 thumbnail
User 219642 avatar

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!)
  • 47
  • 0
  • 6518
  • 65

Comments

Add your comment
User 393686 avatar

RawThinkTank replied ago:

-3 votes Vote down Vote up Reply

Wow , so many votes up for an technology that wastes cpu by unnecessarily generating pages each and every time, hats off to you humans.

User 213745 avatar

kitdavies replied ago:

0 votes Vote down Vote up Reply



Static parts are generated once. I'm not sure how you could do it any other way in a *template* framework

User 213745 avatar

kitdavies replied ago:

0 votes Vote down Vote up Reply

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

User 393686 avatar

RawThinkTank replied ago:

-1 votes Vote down Vote up Reply

Obviously we should move away from template frameworks

User 700203 avatar

schoenobates.myopenid.com replied ago:

0 votes Vote down Vote up Reply

to what ?

User 393686 avatar

RawThinkTank replied ago:

-1 votes Vote down Vote up Reply

Super fast complied / static pages with Ajax data sources; most browsers allow two server requests.

User 917153 avatar

cluny replied ago:

1 votes Vote down Vote up Reply

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.

User 393686 avatar

RawThinkTank replied ago:

-1 votes Vote down Vote up Reply

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.

Add your comment


Html tags not supported. Reply is editable for 5 minutes. Use [code lang="java|ruby|sql|css|xml"][/code] to post code snippets.