(Sorry -- I couldn't resist the alliteration. Peter's article includes quite a bit of code and is a great example of using Groovy's out of the box templating capabilities.)