view

package
v1.0.46 Latest Latest
Warning

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

Go to latest
Published: Jul 22, 2023 License: Apache-2.0 Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type View

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

View wraps template argument building.

func New

func New(tpl *template.Engine, r *http.Request, sess *session.Session) *View

New returns a new view with default parameters.

func (*View) Render

func (v *View) Render(template string) []byte

Render executes the template with arguments.

func (*View) Set

func (v *View) Set(param string, value interface{}) *View

Set adds a new template argument.

Jump to

Keyboard shortcuts

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