spasm
spasm copied to clipboard
Write single page applications in D that compile to webassembly
To prevent it accepting too many types. It should only accept types that have a handle that decays to a JsHandle.
I want to mix an element and a text node so I tried the following code: ``` struct Elem { mixin Node!"div"; @prop innerText = "elem"; } struct App {...
tried code ```d import spasm.spa; @safe: nothrow: struct App { mixin Node!"div"; @prop innerText = "Hello World!"; } mixin Spa!App; ``` in a fresh project. I tried looking around for...
When trying to initialize spasm, with this js function ```js (toDo) => { fetch("dmodule.wasm") .then(response => response.arrayBuffer()) .then(buffer => WebAssembly.instantiate(buffer, { env: jsExports })) .then(obj => { spasm.instance = obj.instance;...
 Every event seems to get added to that objects list and not removed Using the dom example pretty much
```d extern (C) export void _start() { auto elem = document.createElement("div").as!HTMLElement; elem.style.backgroundColor = "green"; elem.innerHTML = "BLA BLA!"; elem.addEventListener("mouseover", (Event event) { elem.style.backgroundColor = "red"; console.log("onmouseover"); console.log(event); console.log(event.as!MouseEvent.clientX); }); auto...
Dub will get the feature to have custom init types. I saw spasm can make use if this (bootstrapping) Could you have a look whether this functionality is useful for...
`Performing "debug" build using /usr/bin/ldc2 for x86_64. spasm 0.1.13+commit.34.g7fe557b: building configuration "library"... Warning: Assuming critical section size = 40 bytes /usr/bin/ldc2 failed with exit code 1.`
This library create a webview using webkit: https://github.com/zserge/webview It's pretty easy to use from D. Can be used as frontend with a spasm backend?
can you explain how show I made a datetime picker with spasm ? Or maybe use interHTML with outer side Javascript implement, but how do I get callback from javascript...