Page History
...
If the Groovy file contains Groovy functions, you can recall the functions by using ‘eval'eval()’ ' methods.
Code Block | ||
---|---|---|
| ||
$groovy.execute('filename.groovy') $groovy.eval("new groovy().functionname()") |
...
Code Block | ||
---|---|---|
| ||
"Class name is " + $c.name" |
The template code
Code Block | ||
---|---|---|
| ||
#foreach ($c in $Class) $groovy.execute("filename.groovy", 'c', $c) #end |
...