Inline Groovy

This demo creates an array of names, dumps it, uses some inline Groovy (via <g:script>) to add a new item, and then dumps it again.

Using the <g:script> tag in this way is very simple, but it creates a new Groovy runtime every request, which has severe performance ramifications (250 - 1,000 ms per request).

No Emery

// better add emery variables.myArray.add("emery")

There He Is!