skhtml/examples/stdweb
Bodil Stokke dbb4ba8738 2018 edition. 2019-03-15 23:37:20 +00:00
..
src Make it generic on event type, determined by output type. 2018-12-01 18:33:34 +00:00
www Make it generic on event type, determined by output type. 2018-12-01 18:33:34 +00:00
Cargo.toml 2018 edition. 2019-03-15 23:37:20 +00:00
README.md Make it generic on event type, determined by output type. 2018-12-01 18:33:34 +00:00
Web.toml Make it generic on event type, determined by output type. 2018-12-01 18:33:34 +00:00

README.md

typed-html WASM example

Simple example of compiling app consuming typed-html to WebAssembly.

Configure & Build

Make sure you have cargo-web installed: Instructions

Build using cargo web build

Note: There may be an issue that can be worked around as described here, due to a bug in stdweb

Serve Through HTTP

We've also provided some simple scaffolding to easily serve the app through http:

$ cd www
$ yarn
$ node index.js

If the build is in a different directory, than the default, you can provide the directory as an argument:

$ node index.js /path/to/build