|
1 year ago | |
---|---|---|
.. | ||
README.md | 1 year ago | |
bulma.min.css | 1 year ago | |
hostconfig-template.js | 1 year ago | |
index.html | 1 year ago | |
simpleserver.ini | 1 year ago | |
webhost.lpi | 1 year ago | |
webhost.lpr | 1 year ago |
This directory contains a generic HTML loader page for a WebAssembly module that needs a WASI and JOB hosting environment.
Compile the .lpr with pas2js, and load the page in your browser. By default the page will attempt to load a demo.wasm module.
You can specify the module to load in 1 of 3 ways:
from external variable wasmFilename. To this end, copy hostconfig-template.js to hostconfig.js. In this file, change the name of the webassembly to load.
from the first part of hash: #moduleName/
from query varable wasmmodule: ?wasmmodule=x
the extension .wasm must be specified.