try using groovy's template engine