title: Custom model in Groovy templates
body: <p>Is it possible to have a custom, map-like class (although not related to map) in a Groovy template, in a way that I can specify how properties from my custom class are mapped to model properties? E.g. if we have property <code>$firstName</code> I would like to customize how <code>firstName</code> is obtained from my custom class.</p>