Michaël Van Canneyt d0a5b61b80 * Corrections from samples 1 year ago
..
README.md ec21c75e05 * Hosting example for webassembly module 1 year ago
bulma.min.css ec21c75e05 * Hosting example for webassembly module 1 year ago
hostconfig-template.js ec21c75e05 * Hosting example for webassembly module 1 year ago
index.html ec21c75e05 * Hosting example for webassembly module 1 year ago
simpleserver.ini d0a5b61b80 * Corrections from samples 1 year ago
webhost.lpi ec21c75e05 * Hosting example for webassembly module 1 year ago
webhost.lpr d0a5b61b80 * Corrections from samples 1 year ago

README.md

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:

  1. 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.

  2. from the first part of hash: #moduleName/

  3. from query varable wasmmodule: ?wasmmodule=x

the extension .wasm must be specified.