feat: add working prototype for via
This commit is contained in:
9
h/datastar.go
Normal file
9
h/datastar.go
Normal 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))
|
||||
}
|
||||
Reference in New Issue
Block a user