feat: introduce support for plugins

This commit is contained in:
Joao Goncalves
2025-11-07 02:45:58 -01:00
parent 798f024743
commit a46c06b467
7 changed files with 87 additions and 21 deletions

View File

@@ -17,7 +17,7 @@ import (
// It binds user state and actions, manages reactive signals, and defines UI through View.
type Context struct {
id string
app *via
app *V
view func() h.H
componentRegistry map[string]*Context
parentPageCtx *Context
@@ -302,7 +302,7 @@ func (c *Context) ExecScript(s string) {
_ = sse.ExecuteScript(s)
}
func newContext(id string, a *via) *Context {
func newContext(id string, a *V) *Context {
if a == nil {
log.Fatalf("create context failed: app pointer is nil")
}