This element includes an external script file into the KUIML application. The script file is loaded and compiled so that all definitions (classes, variables, functions) are made available to the scripting engine at runtime. See Scripting Reference for more information.
None.
Name | Value Type | Default Value | Description | Comment | V. | Exp. |
---|---|---|---|---|---|---|
src |
path to script file |
empty |
Path to the script file to include. |
2.0 |
No | |
script |
inline script content |
empty |
if defined, overrides the src attribute. The script included in the attribute should be xml-encoded. |
2.4 |
No | |
requires |
list of ';' separated identifiers or wildcards |
Empty. |
List of objects expected by the script. |
Forces the KUIML engine to expose the listed objects to the scripting engine. for example: 'my_object.*;my_string' |
2.0 |
No |
preprocess |
false |
set to true if the script file should be preprocessed before being compiled. |
Preprocessing a script consists in replacing build time variables ($var$) by their values before compiling the script. Preprocessing is always applied to inline script content, regardless of the value of this attribute. |
2.0 |
No |