Skip to content
Zig + WebAssembly + JS + DOM
Branch: gh-pages
Clone or download
Latest commit 93987e5 Apr 26, 2019
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
.gitignore Format and update readme Apr 19, 2019
README.md Update instructions Apr 26, 2019
index.html MVP DOM interaction Apr 19, 2019
zigdom.js Fix setAttribute and prettier js Apr 19, 2019
zigdom.wasm Format and update readme Apr 19, 2019
zigdom.zig Fix setAttribute and prettier js Apr 19, 2019

README.md

zig-wasm-dom

An example demonstrating Zig interacting with the DOM via JS.

The WebAssembly memory allocator used here was added after Zig 0.4.0. On MacOS with Homebrew, brew install zig --HEAD can be used to install Zig's master branch.

Compile with zig build-exe -target wasm32-freestanding --release-small zigdom.zig

You can’t perform that action at this time.