Thymeleaf 3 is coming...

classic Classic list List threaded Threaded
14 messages Options
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

Thymeleaf 3 is coming...

danielfernandez
Administrator
Hi there!

We are happy to announce that the development efforts for Thymeleaf 3.0 have not only already started, but in fact have already gone a long way! Thymeleaf 3 is going to be a huge leap for Thymeleaf, and we are really excited about the features we plan to include in this new major release.

Just to give you a taste, these will be Thymeleaf 3's main goals:

  * Better performance. Faster template engine execution.
  * Smaller memory footprint. Reduced latency in high­load servers.
  * Full support of (non­XML­ized) HTML code, esp. HTML5.
  * No disruption of existing template code base. Seamless migration of templates from v2.
  * Maximum ability to create HTML templates as pure HTML. Not only Natural, but also Decoupled Templates: HTML/XML templates with no Thymeleaf code at all.

How will Thymeleaf v3 achieve this? We will need two new things:

  * A new parser. Lighter, more efficient, purpose-built. With much better HTML support.
  * A new engine. More modular, heavily optimized. Reduced parse-­to-­output time.

The good news is, we already have such new parser: AttoParser v2. AttoParser was born in late 2012 with the aim of being the markup parser for future versions of Thymeleaf, and we have now given it such a huge refactoring in order to support even better all the things we need for Thymeleaf 3 that it jumped to major version v2 (still in beta, anyway, but very stable). It is now the perfect parser for a markup-savvy template engine like Thymeleaf :-)

And the even better news is, we also have the foundations for the new engine. Many of the new concepts have already been tested (and implemented!) and we are looking really good so far.

There are lots of things to do yet, but we hope that we will have Thymeleaf 3 at least in BETA stage somewhere in the Summer of 2015, and a stable release soon after.

Thanks to all of you for having allowed this project reach where it is now.

And now... let's go back to work!

---
Daniel Fernández
Thymeleaf Team Lead
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

Re: Thymeleaf 3 is coming...

satish
if you can provide some benchmark results itsvery help full for us . please ...
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

Re: Thymeleaf 3 is coming...

andreaskl
It's quite easy to run https://github.com/mbosecke/template-benchmark with the recent 3.0 snapshop (https://oss.sonatype.org/content/repositories/snapshots/org/thymeleaf/thymeleaf/).

On my machine (I7-4750HQ) the improvement is around factor 10x from around 1000/s improved to 11000/s

A massive improvement for work in progress.
Tom
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

Re: Thymeleaf 3 is coming...

Tom
Wow, TL3 sounds great.  Looking forward to it.  Thanks.
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

Re: Thymeleaf 3 is coming...

adanecito
Anyone know when TL3 will be released. We are having the same issues as mentioned here.
We also have a high CPU issue so wondering if that was addressed in TL3.

Thanks,
-Tony
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

Re: Thymeleaf 3 is coming...

Sawyer
In reply to this post by andreaskl
how does it compare with freemarker or velocity?
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

Re: Thymeleaf 3 is coming...

Safouen Bezzine
In reply to this post by danielfernandez
It would be better if we can contribute to code some new options for the thymeleaf engine . I have some ideas so maybe i can share it with all the thymeleaf team.
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

Re: Thymeleaf 3 is coming...

Zemi
Administrator
Hello Safouen,

you're welcome to suggest and discuss improvements as Github issues
   https://github.com/thymeleaf/thymeleaf/issues

Please take a moment to look for an enhancement before proposing it again.

Regards,
   Zemi

Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

Re: Thymeleaf 3 is coming...

changchao
In reply to this post by danielfernandez
Looking forward to seeing it .
When does it come out ,approximately?
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

Re: Thymeleaf 3 is coming...

ractive
In reply to this post by danielfernandez
Any news on Thymeleaf 3 or on the general state of the project? It's uncomfortably silent about Thymeleaf in general and the last release is already 9 months old...


Best regards
James
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

Re: Thymeleaf 3 is coming...

Zemi
Administrator
Hi James,

there has been a lot of development in the last months, indeed, more development than ever on Thymeleaf.

Please take a look at
   https://github.com/thymeleaf/thymeleaf/graphs/commit-activity

All Thymeleaf 2.1 tests are passing
   https://twitter.com/danfenz/status/634876441902088192

You can try the latest snapshot or 3.0.0.ALPHA02 if you are not using dialects, it should be 100% compatible.

There are also a lot of new features documented as github issues (for now), but everything will be in place when the final release comes.

Regards,
   Zemi

Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

Re: Thymeleaf 3 is coming...

ractive
Hi Zemi

That sounds very promising. I'm glad the project is on good track...


Regards,
James
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

Re: Thymeleaf 3 is coming...

Zemi
Administrator
Hi again James,

Daniel has just posted information on the new features at
   http://forum.thymeleaf.org/Thymeleaf-3-0-status-td4029243.html

Regards,
   Zemi

Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

Re: Thymeleaf 3 is coming...

Zemi
Administrator
In reply to this post by danielfernandez
If someone reaches this post, please be aware that a beta version of Thymeleaf 3 has been already published, see
  http://forum.thymeleaf.org/Thymeleaf-3-0-0-BETA01-just-published-td4029294.html

Regards,
  Zemi

Loading...