Hi all
Maybe a silly question: what is the best way to create reusable scripts?
By reusable I primarly mean for related resources.
I am currently aware of 3 possibilites:
1) the *.esp way with the load() function, which afaik loads & evaluates
a script
2) the *.jsp way with compilation and then execution
3) the OSGI way with bundles and services and stuff
Now, I would like to keep DRY and use some common functions, and all
with Groovy scripts. As far as I know (and this is not too far), all 3
possibilities would be possible with Groovy, and all 3 might make sense.
Currently I am tending towards the jsp-solution: I would like to use
compiled java classes whereever possible and still use the fast round
tripping of the esp-way.
What do you think: are my assumptions right? How would you tackle the
jsp way?
Cheers
Christian