Improving Templates for Grails

For all the things that I like about Grails, I have one small problem, and in fact it is not even a Grails problem. Changes to the GSP require redeployment of the entire web application. I'm not talking about adding new dynamic data or major changes. In any case, as a rule, they also require changes on the server side.

But I'm talking about smaller changes, for example, inverting the position of several elements or changing simple static text on the page. So my question is: what are some of the templates or plugins used, etc. that allow minor changes to the GSP without redeploying the entire application? How can I make a Grails / GSP template more like templates and require less compilation?

I can also find something more designer-friendly.

+3
source share
2 answers

grails.gsp.view.dir, I think.

Trick to remember : add a trailing slash and remember that it will be added to it grails-app/views.

+1
source

There is a Grails plugin for using FreeMarker templates in the form of views (I myself have not used this plugin). It is not listed as supported by SpringSource, but I think that the author is one of the main developers of grails, and the plugin is based on the relatively new version of FreeMarker .

0
source

All Articles