bash
cd ftd-rt
wasm-pack build --target web -- --features=wasm
This commmand will create pkg folder inside ftd-rt
bash
cd ftd
cargo run
This will create HTML (.html and -rt.html) files inside ftd/build folder for all .ftd files inside ftd/examples folder
-rt.html: It is runtime file rendered using wasm..html: It is static html file.Run a local server:
bash
cd ftd/build
python -m http.server 8000
And visit: http://localhost:8000/.