On Friday, 21 September 2018 at 14:01:30 UTC, Sebastiaan Koppe
wrote:
Hey guys,
Following the D->emscripten->wasm toolchain from CyberShadow
and Ace17 I created a proof of concept framework for creating
single page webassembly applications using D's compile time
features.
This is a proof of concept to find out what is possible.
At https://skoppe.github.io/d-wasm-todomvc-poc/ you can find a
working demo and the repo can be found at
https://github.com/skoppe/d-wasm-todomvc-poc
Here is an example from the readme showing how to use it.
---
struct Button {
mixin Node!"button";
@prop innerText = "Click me!";
}
struct App {
mixin Node!"div";
@child Button button;
}
mixin Spa!App;
---
Very cool! Thanks!