views

package
v0.0.0-...-43291f5 Latest Latest
Warning

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

Go to latest
Published: Jul 4, 2023 License: MIT Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Viewer

type Viewer struct {
	TemplateMap template.FuncMap
	Templates   *template.Template
	TemplateBox *rice.Box
	Statics     *rice.HTTPBox
}

Viewer structures the set of app page views

func InitializeViewer

func InitializeViewer() *Viewer

InitializeViewer initializes the set of page views

func (*Viewer) InitializeTemplates

func (p *Viewer) InitializeTemplates()

InitializeTemplates to use in page views

func (*Viewer) RenderTemplate

func (p *Viewer) RenderTemplate(w http.ResponseWriter, tmpl string, pInt interface{})

RenderTemplate - Render a template given a model

Jump to

Keyboard shortcuts

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