Question

Is it possible to use the Grails GSP engine as the template engine in Play?

Including TagLibraries and such?`

What is neccessary to make that stuff work?

( I prefer the HTML style tags over the Ruby style ( ugly annoying )

Was it helpful?

Solution

The template engine is a pluggable system. For example, in Play 1.0 there is already the out of the box Groovy engine, the Scala engine within the Scala module, the Cambridge and Japid engines, also available as plugins.

For Play 2.0, there is already the Scala engine, and an implementation of the Groovy engine (I believe intended to be a plugin).

To answer your question of can it be done, the above clearly shows that it is possible, as others have done similar. To answer what is necessary, it depends on which platform you are targetting (Play 1 or 2), but there exists examples of both that you can follow to create your own module. I would highlight that Play 2.0 is not a stable release yet, so be cautious and prepare for some things to change over the next month or so, until a final release is issued.

Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow
scroll top