I am just starting to use Gaelyk.
I was expecting it to behave like Spring MVC; I create my model object in the controller.groovy, and the format the model object in the .gtpl.
In the controller I do this
def model = new MyModel()
model.setMyId(2)
and in the .gtpl I do this
<h1>Test ${model.myId}</h1>
<p>
Model object is ${model}
</p>
However when I run this I get a MissingPropertyException
groovy.lang.MissingPropertyException: No such property: model for class: SimpleTemplateScript1
In the tutorial examples the model object is shoehorned into an Attribute of javax.servlet.http.HttpServletRequest which IS accessible to the .gtpl.
Is this really the only way pass data between the controller and the template ? I would feel cleaner if I could avoid polluting the Request (or Response) objects.