| Top | Previous | Next |
|
Global Script Modules |
|
Your project can have a set of global script modules that any other script can reference. These modules all reside under the app namespace. These modules are available in bath Gateway and Client scope scripts. This is a great way to extract common logic into a central place - a core tenet of a well designed code.
To use your global script module, you'll need to have app imported into your current scope. Event handler scripts get this automatically, but user defined functions and other scripts will have to use import app to use global script modules.
See also: |