pywry.scripts¶
JavaScript initialization script builder.
pywry.scripts.build_init_script
¶
Build the core initialization script for a window.
Loads all bridge scripts from frontend/src/ and concatenates
them with the window label assignment.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
window_label
|
str
|
The label for this window. |
required |
enable_hot_reload
|
bool
|
Whether to include hot reload functionality. |
False
|
Returns:
| Type | Description |
|---|---|
str
|
The combined JavaScript initialization script. |