winged-rust 1.0.1

Fast, type-safe HTML DSL and static site generation engine in Rust and WebAssembly
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
# Node example

Generates a two-page static site from Node, through the WebAssembly build.

```bash
./scripts/build-wasm.sh          # produces npm/node/
node examples/node/build.mjs     # writes examples/node/dist/
```

The Rust equivalent is `cargo run --example static_site`. Both produce the same markup,
because both drive the same renderer — the bindings wrap the real node tree rather than
concatenating strings.

For the stricter version of this check, see `npm/smoke.mjs`, which renders the golden
fixture page through WebAssembly and diffs it byte for byte against the file the Rust tests
use.