html

package
v0.0.0-...-7b3e105 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Aug 11, 2025 License: MIT Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func RenderToString

func RenderToString(node *vdom.VNode) (string, error)

RenderToString is a convenience function to render a VNode to a string

Types

type HTMLApplier

type HTMLApplier struct {
	// contains filtered or unexported fields
}

HTMLApplier renders VNodes to HTML

func NewHTMLApplier

func NewHTMLApplier(w io.Writer) *HTMLApplier

NewHTMLApplier creates a new HTML applier

func (*HTMLApplier) Apply

func (a *HTMLApplier) Apply(prev, next *vdom.VNode) error

Apply renders a VNode tree to HTML

type HydrationIDGenerator

type HydrationIDGenerator struct {
	// contains filtered or unexported fields
}

HydrationIDGenerator generates unique IDs for hydration

func NewHydrationIDGenerator

func NewHydrationIDGenerator() *HydrationIDGenerator

NewHydrationIDGenerator creates a new hydration ID generator

func (*HydrationIDGenerator) Next

func (g *HydrationIDGenerator) Next() string

Next returns the next hydration ID

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL