view

package
v0.2.36 Latest Latest
Warning

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

Go to latest
Published: Dec 27, 2025 License: MIT Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func RenderHTML

func RenderHTML(n Node) string

Types

type Comment

type Comment struct {
	Comment string `json:"comment,omitempty"`
}

type Element

type Element struct {
	Tag      string              `json:"tag,omitempty"`
	Attrs    map[string][]string `json:"attrs,omitempty"`
	Style    map[string]string   `json:"style,omitempty"`
	Children []Node              `json:"children,omitempty"`

	UnsafeHTML string `json:"unsafeHtml,omitempty"`

	Key   string `json:"key,omitempty"`
	RefID string `json:"refId,omitempty"`

	Handlers []metadata.HandlerMeta `json:"handlers,omitempty"`

	Script     *metadata.ScriptMeta `json:"script,omitempty"`
	Stylesheet *metadata.Stylesheet `json:"stylesheet,omitempty"`
}

type Fragment

type Fragment struct {
	Fragment bool   `json:"fragment"`
	Children []Node `json:"children,omitempty"`
}

type Node

type Node interface {
	// contains filtered or unexported methods
}

type Text

type Text struct {
	Text string `json:"text,omitempty"`
}

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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