Cedric has put together the simple API of Velocity, with the power of the Groovy language. The result is a new templating solution called Canvas.
I have actually been thinking about this exact problem, and think Cedric is on the right track. I think there will be a great trend to using Java + Groovy on projects, as there is a time and a place for each of them. Since they play so nice together it works perfectly.
On the templating site itself, I do have a pet peeve.
I don’t like the JSP-style syntax:
<% groovy code %>
I would prefer something more Velocity based…. and allowing simple:
Welcome $user.name
If the two were combined then you could have the best of both worlds.
I also hope that there could be an option: “don’t preserve newline at the end of tags” which would stop the following code:
Hi
<% do x %>
<% do y %>
There
from producing:
Hi
There
It just drives me nuts :)
Well done Cedric!
March 8th, 2004 at 12:43 pm
Chris -
Yeah. Template Toolkit is great. I am actually thinking about the potential to take that and have it work with Groovy (as a different “template langauge”).
What are features that you would like to see?
Dion
October 9th, 2006 at 4:36 am
big thank