Why I want to use quick tags over Groovy tags in the game

What is the advantage of fast tags over groovy tags on Play? I've seen a lot of events lately, but not quite sure what is the matter?

+4
source share
3 answers
Tags

Groovy gives you the opportunity to abstract the presentation logic, but there are cases, like when using Java extensions, that you need more complex presentation logic or business logic that you donโ€™t want to create using scripts or scriptlets.

Quick tags are created in java, not groovy, so let's give you the ability to create neat tags with complex logic without compromising the mvc architecture with comcompex logic in the view.

+2
source

With quick tags, you have full Java support with code completion and compiler checking. Moreover, they are faster, which may be very important in some situations. But I think that in most cases regular tags are not bad, only in special cases (complex logic or performance) fast tags are the best choice.

+2
source

In addition to the two previous answers (complex logic, code completion and compiler checking), I would add a performance improvement that comes from using java instead of groovy and, very important in fact, the ability to debug code. Just set a breakpoint in the FastTag source code and the debugger will stop there.

0
source

All Articles