Open gedw99 opened 1 year ago
Currently, I use https://github.com/gioui-plugins/gio-plugins/tree/main/webviewer, the demo already display one webview inside an Gio. It's possible to communicate between Go <-> JS, but it's not very efficient.
I use webview to display external content (social-media profiles/posts and ToS/Privacy Terms). Honestly, I don't think makes sense to mix Gio + HTML. If the goal is to create one app using HTML I would choose Tauri (https://tauri.app) or Wails (https://github.com/wailsapp/wails), or even Electron (https://github.com/asticode/go-astilectron) might be better than use WebView + Gio.
i am experimenting with having a gio webview with in larger gio App.
The middle par is a gio web view. The left and right pane is any gio layout.
this is probably a petty common UX use case I think and so would be good to make it a demo in the web view folder.
From the main gio App we should be able to:
for the deno web psge (s), i plan to make a simple web App example in golang that uses go templates for rendering and htmx for manipulating the contents of the web page. Here are many examples of htmx and golang so it’s clearly very popular with golang developers that also want a clean way to be interactive web sites.
so then from the gio app, we can manipulate the web page via communication with either the web server , or the web client.
This will I hope be a useful demo for many users.
@inkeliz feel free to add comments to this issue that also match whatever your needs are for the Gio Webview