pages

package
v0.0.0-...-9bbed00 Latest Latest
Warning

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

Go to latest
Published: Jan 15, 2024 License: Apache-2.0 Imports: 13 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Component

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

func GetComponent

func GetComponent(ctx context.Context) *Component

func New

func New(opt Options) *Component

func (*Component) AddToScope

func (c *Component) AddToScope(ctx context.Context, scope *scopes.Scope)

func (*Component) RegisterHandlers

func (c *Component) RegisterHandlers(s *components.Server, mux *http.ServeMux) error

type Options

type Options struct {
	Base fs.FS

	ScopeValues []ScopeFunction
}

func (*Options) InitDefaults

func (o *Options) InitDefaults(appName string)

type ScopeFunction

type ScopeFunction func(ctx context.Context, scope *scopes.Scope)

type TemplateEndpoint

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

func BuildTemplate

func BuildTemplate(b []byte) *TemplateEndpoint

func (*TemplateEndpoint) Render

func (*TemplateEndpoint) ServeHTTP

Jump to

Keyboard shortcuts

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