feat: add working prototype for via

This commit is contained in:
Joao Goncalves
2025-10-31 00:58:53 -01:00
parent d15af60a1d
commit eb20a2a0a9
13 changed files with 1330 additions and 0 deletions

9
h/datastar.go Normal file
View File

@@ -0,0 +1,9 @@
package h
import "fmt"
type OnClickOpts string
func OnClick(actionid string, opt ...OnClickOpts) H {
return Data("on:click", fmt.Sprintf("@get('/_action/%s')", actionid))
}