app

package
v0.0.0-...-8aa12d4 Latest Latest
Warning

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

Go to latest
Published: Oct 30, 2023 License: MPL-2.0 Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	// Home is the root directory of the webpages
	Home = "app"
)

Functions

func LoadPage

func LoadPage(name string) ([]byte, error)

LoadPage attempts to find the correct file and return its contents.

Types

type TPZPage

type TPZPage interface {
	// Content points to the HTML resource
	Content() string
	// Layout fills in template values for the page
	Layout(*data.Session) TPZPageLayout
}

TPZPage defines how a webpage of the UI should be structured

type TPZPageLayout

type TPZPageLayout struct {
	Title   string
	Header  string
	Session *data.Session
	Data    string
}

TPZPageLayout defines variables to set in the main layout

func NewLayout

func NewLayout(session *data.Session) TPZPageLayout

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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