4 ms·
> What does a Treeview look like - in a ".up" file, can I walk a tree (like io.fs.FS) ? Yes, you can just write normal Go code to traverse a filesystem and do
by paulsmith 4y ago
> What does a Treeview look like - in a ".up" file, can I walk a tree (like io.fs.FS) ?
Yes, you can just write normal Go code to traverse a filesystem and do with it whatever you like.
> Can I compile a Pushup app into a giant WASM hairball and run the whole thing in the browser ?
I haven't tried this so I don't know what would happen, and a lot would depend on what kind of JS host runtime support there was for anything that is doing a syscall.
But related to WASM, an idea I have is to add syntax to be able to split a Pushup page into client-side and server-side code, compile the client-side code to WASM, and use the Pushup compiler to generate the appropriate handoffs for any network calls between (AJAX, websocket, etc.)
- euroderf 4y agoIdeally then, the client side could run in disconnected mode. But then you encounter DB sync issues. And I wonder what htmx does then.