API Reference alternera_plugin_wasm_module v#0.9.0

Copy Markdown View Source

Modules

The WebAssembly module step: runs a compiled module the user uploads into the step itself, on the request or the response, in a fresh WebAssembly instance per call. What it returns goes where its To rows say, as a language step's returned value does.

The WebAssembly module step's editor: the framework's PluginWasmFramework.StepEditor over WasmModule.language/0, which draws the upload, the module's card and its bindings for a step-module language, and the Help it shows. The configuration's colouring is registered by WasmModule.EditorMode.

The colouring of the WebAssembly module step's configuration text in the proxy's code editor: a colocated hook whose module code registers the language "wasm_module_config" with the editor when app.js loads (window.AlterneraEditorModes, read by the proxy's assets/js/lua_editor/registered_modes.js). The hook itself does nothing and no element uses it.