view

package
v1.4.1 Latest Latest
Warning

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

Go to latest
Published: Feb 7, 2023 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 v1.0.0

func ParseGlob(pattern string)

func Render added in v1.0.0

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

Types

type View

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

func New added in v1.0.0

func New() *View

func (*View) ParseGlob added in v1.0.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