• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Grails and Velocity

 
Mourouganandame Arunachalam
Ranch Hand
Posts: 398
Android Eclipse IDE Ubuntu
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Is it possible to use Velocity with Grails?

Can you suggest any good resources for this?
 
Gregg Bolinger
Ranch Hand
Posts: 15304
6
Chrome IntelliJ IDE Mac OS X
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Grails uses GSPs which are really just JSPs but with a few more features because of being able to write groovy code in EL. Since JSP 2.0, libraries like Velocity don't really gain you anything. Why would you want to use Velocity with Grails?
 
Jon Dickinson
Author
Ranch Hand
Posts: 45
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi Mourougan,

There is no support, that I am aware of, for Velocity in Grails.

The only benefit I can think of for using a separate templating language for the view, e.g. Velocity or Freemarker, is that you can test the views without running the entire application. However, if I wanted to unit test the views I would rather use Java or Groovy code than a template language.

After a quick Google I think it is more likely that freemarker will be supported before velocity, if either of them are on the plan.

Cheers,
Jon.
 
Mourouganandame Arunachalam
Ranch Hand
Posts: 398
Android Eclipse IDE Ubuntu
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Thanks for the info Jon.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic