view

package
v0.0.0-...-5365f31 Latest Latest
Warning

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

Go to latest
Published: Jul 18, 2018 License: Apache-2.0 Imports: 3 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, ctx *context.Context, 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