skhtml/examples/stdweb
Bodil Stokke 818c8ebdac Make it generic on event type, determined by output type.
Unfortunately, this means the macro now requires a type annotation when 
using event handlers.

Closes #6, #17.
2018-12-01 18:33:34 +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 Make it generic on event type, determined by output type. 2018-12-01 18:33:34 +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