render

package
v1.2.0 Latest Latest
Warning

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

Go to latest
Published: Sep 17, 2024 License: AGPL-3.0 Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Element

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

func (*Element) Clear

func (element *Element) Clear()

func (*Element) Read

func (element *Element) Read(p []byte) (n int, err error)

func (*Element) Remove

func (element *Element) Remove(name string)

func (*Element) Replace

func (element *Element) Replace(new *Element)

func (*Element) Set

func (element *Element) Set(name, value string)

func (*Element) Value

func (element *Element) Value() js.Value

func (*Element) Write

func (element *Element) Write(p []byte) (n int, err error)

type Render

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

func New

func New(fs embed.FS, patterns ...string) (*Render, error)

func (*Render) Add

func (render *Render) Add(key string, value interface{})

func (*Render) Create

func (render *Render) Create(name string) (*Element, error)

func (*Render) Element

func (render *Render) Element(id string) *Element

func (*Render) Event added in v1.2.0

func (render *Render) Event(id string) *event.Event

func (*Render) Execute

func (render *Render) Execute(name string) error

func (*Render) Remove

func (render *Render) Remove(key string)

func (*Render) Root

func (render *Render) Root() *Element

Jump to

Keyboard shortcuts

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