Skip to content
This repository was archived by the owner on Aug 2, 2022. It is now read-only.
This repository was archived by the owner on Aug 2, 2022. It is now read-only.

Code Exporting #12

@NomNuggetNom

Description

@NomNuggetNom

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:

package util

class Util {
   static String shout(s) { 
      s.toUppercase()
   }
}

And let's say I want to auto-magically use this script on the front end, as such:

<grooscript:code>
   def s = util.Util.shout('Hello, world!')
</grooscipt:code>

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.

Metadata

Metadata

Assignees

No one assigned

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions