-
Notifications
You must be signed in to change notification settings - Fork 14
framework
The levure/framework
folder contains the levure.livecodescript
script-only LiveCode stack which has the Levure library handlers and provides the primary framework functionality. The folder also contains a helpers
folder which adds additional framework functionality. You should not modify any code in the levure/framework/levure.livecodescript
stack or in the levure/framework/helpers
folder.
- 📂 your_project_folder
- 📁 app
- 📁 builds
- 📂 levure
- 📂 framework
- levure.livecodescript
- 📁 helpers
- 📁 packager
- 📁 utils
- 📂 framework
When your application starts up, the levure.livecodescript
stack script is automatically opened and attached to your executable standalone stack as a behavior. The framework script is then placed into the message path with start using
so the framework handlers are globally accessible throughout your application.
The framework logic is located in the levure.livecodescript
file. The stack must be assigned as the behavior of another stack which is assumed to be the standalone.livecode
stack. The levureInitializeAndRunApplication
will initialize and load the framework. Here is what happens during loading:
- If an sAppA script local exists and the stack is running in the development environment then use values from that. It means the app has been packaged. Otherwise load the
app.yml
file, searching first alongside thestandalone.livecode
stack file and then directly within any folders that are alongside thestandalone.livecode
stack. Ifapp.yml
is not found then app cannot be loaded. - Process any command line arguments using the
app_files_and_urls
helper (ifapp.yml
explicitly loads this helper). - Load
app.livecodescript
from folder containing theapp.yml
file. - Load externals.
- Load helpers whose "preload" property is true. Any helper that ships with the framework is preloaded. When a helper is loaded all extensions, libraries, backscripts, and frontscripts that make up a helper will be loaded. UI stacks are added to list of stackFiles of the
app
stack. - Create application data folders.
- Dispatch
PreloadApplication
to theapp
stack. - Load remaining application assets. Extensions, libraries, backscripts, frontscripts are loaded into memory. UI stacks are added to list of stackFiles of the
app
stack. - Dispatch
InitializeApplication
toapp
stack. - Dispatch
OpenApplication
toapp
stack.
The levure/framework
folder also contains a helpers
folder which adds additional functionality to the framework. The helpers in the levure/framework/helpers
folder should normally not be modified.
Levure is an application development framework written for LiveCode.