The Power of Being There “What i want in an RSS tool” / How to manage too much data!
Mar 08

Canvas: the Groovy templating language

Groovy, Tech Add comments

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 $

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:

<% do x %>
<% do y %>

from producing:



It just drives me nuts :)

Well done Cedric!

2 Responses to “Canvas: the Groovy templating language”

  1. Dion Says:

    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?


  2. laser hair removal for man Says:

    big thank

Leave a Reply

Spam is a pain, I am sorry to have to do this to you, but can you answer the question below?

Q: Type in the word 'ajax'