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 (not every script), which has performance ramifications.

No Emery

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

There He Is!