Open NomNuggetNom opened 7 years ago
So, imagine you annotate classes with @ExportScript, then what plugin do? Add that js converted code to all gsp's with grooscript tags?
Can you please explain a bit more this improvement, it seems nice idea!
Yes @chiquitinxx exactly :). The classes annotated would be usable within the grooscript:code
tag
I'm not sure this is totally possible, so bear with me. Let's say we have a simple utility class on the back-end:
And let's say I want to auto-magically use this script on the front end, as such:
In order to get this variable bound in the grooscript context, a simple annotation is introduced,
@ExportScript
. Simply tagging the class with this annotation will result it in being present on the front-end.