viewrt

package
v0.2.0 Latest Latest
Warning

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

Go to latest
Published: Jul 2, 2022 License: MIT Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Proxy

func Proxy(client budclient.Client) *liveServer

func Static

func Static(fsys fs.FS, vm js.VM, wrapProps func(path string, props interface{}) interface{}) *staticServer

Static server serves the same files every time. Used during production.

Types

type Map

type Map map[string]interface{}

Map is a convenience function for the common case of passing a map of props into a view

type Renderer

type Renderer interface {
	Render(path string, props interface{}) (*ssr.Response, error)
}

Renderer interface

type Server

type Server interface {
	Middleware(http.Handler) http.Handler
	Handler(route string, props interface{}) http.Handler
}

Jump to

Keyboard shortcuts

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