view

package
v0.0.0-...-8a85ded Latest Latest
Warning

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

Go to latest
Published: Nov 27, 2024 License: MIT Imports: 21 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
}

func (*View) AddContext

func (v *View) AddContext(ctx *exec.Context)

func (*View) AddControlStructure

func (v *View) AddControlStructure(controlStructure *exec.ControlStructureSet)

func (*View) AddFilter

func (v *View) AddFilter(filter *exec.FilterSet)

func (*View) AddTest

func (v *View) AddTest(test *exec.TestSet)

func (*View) Compile

func (v *View) Compile() error

func (*View) Construct

func (*View) Construct() interface{}

func (*View) Render

func (v *View) Render(template string, data map[string]interface{}) ([]byte, error)

type ViewProvider

type ViewProvider interface {
	Render(w io.Writer, template string, data ...map[string]interface{}) error
}

Jump to

Keyboard shortcuts

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