skhtml/examples/wasm
Ronni Egeriis Persson 13a9828776 Add instructions and web server to wasm example 2018-11-19 23:28:05 +01:00
..
src Support nested invocations of html macro 2018-11-18 02:45:07 -08:00
www Add instructions and web server to wasm example 2018-11-19 23:28:05 +01:00
Cargo.toml Reorganise examples. 2018-11-17 19:39:57 +00:00
README.md Add instructions and web server to wasm example 2018-11-19 23:28:05 +01:00
Web.toml Reorganise examples. 2018-11-17 19:39:57 +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