view

package
v0.3.0 Latest Latest
Warning

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

Go to latest
Published: Jan 17, 2020 License: Apache-2.0 Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ParseGlob added in v0.3.0

func ParseGlob(pattern string)

func Render added in v0.3.0

func Render(name string, data interface{}) template.HTML

Types

type View

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

func New added in v0.3.0

func New() *View

func (*View) ParseGlob added in v0.3.0

func (v *View) ParseGlob(pattern string)

ParseGlob creates a new Template and parses the template definitions from the files identified by the pattern, which must match at least one file.

func (*View) Render

func (v *View) Render(name string, data interface{}) template.HTML

Jump to

Keyboard shortcuts

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