Hans Raaf
Hans Raaf
I never used Lambda, but I would probably start here: https://github.com/abihf/delta or https://github.com/akrylysov/algnhsa
You may check out https://github.com/maragudk/gomponents which is something similar and makes use of the global scope. I actually do not like dot imports a lot and it bytes itself with...
Sure. Just add and use them: ``` handler := &app.Handler{ Name: "My App", Scripts: []string{ "/web/myscript.js", // Local script "https://foo.com/remoteScript.js", // Remote script }, } ``` See: https://go-app.dev/js
We use this in our apps especially when debouncing fields and backend requests it makes a lot of sense to skip all the not needed updates for the GUI. Here...
I checked the upcoming changes in v9.6.0, and that solves what I wanted to add with this PR.
Like including their stater components (see #712) and then just using them. What is it that holds you back? Maybe check out https://github.com/mlctrez/goapp-mdc/ for inspiration.
Just use `app.Script()` instead of `app.Raw()`: ``` func (h *hello) Render() app.UI { return app.Div().Body( app.H1().Text("Hello World!"), app.Div().ID("tree"), app.Script().Src("https://cdn.jsdelivr.net/npm/[email protected]/dist/jquery.slim.min.js"), app.Script().Src("https://cdn.jsdelivr.net/npm/[email protected]/dist/js/bootstrap.bundle.min.js"), app.Script().Src("https://cdn.jsdelivr.net/npm/[email protected]/dist/js/bstreeview.min.js"), app.Script().Text(` function getTree() { console.log('call getTree') var data =...
To explain what happens, `app.Raw("window.alert('noBoom');")` is basically the same as `someNode.innerHTML="window.alert('noBoom');"`. This is not executed as a [security measure](https://developer.mozilla.org/en-US/docs/Web/API/Element/innerHTML#security_considerations). While `app.Script().Text("windows.alert("thaBoom");')` creates a script element, sets the content, and then...
Should this not get closed now as the feature is in the main branch?
I wrote a `magefile` ([Mage](https://magefile.org/)) which checks dependencies, recompiles, and restarts the server when we change code. As we need an "update app" mechanism for the app anyway (using head...