-
Notifications
You must be signed in to change notification settings - Fork 3
Open
Labels
enhancementNew feature or requestNew feature or request
Description
It would be cool to find a way to straight up use html/template for server components. The trick is to find a way to parse HTML and turn it into JSON; as well as mark islands so that we can use client references to render those on the client. This must be pretty similar to how islands in SolidStart work.
tmpl := template.New("index.html")
b := new(bytes.Buffer)
err := tmpl.Execute(b, map[string]interface{}{
"MyIsland": Island("MyIsland"),
})to turn that html on the client to JSX that could be used to hydrate React is going to be fun :) you can probably use dangerouslySetInnerHTML :) or you would need to have props that are in a special format, like
<button disabled strike:disabled="boolean:true" />jasikpark and bamcop
Metadata
Metadata
Assignees
Labels
enhancementNew feature or requestNew feature or request