view

package
v0.0.0-...-c99bb84 Latest Latest
Warning

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

Go to latest
Published: Feb 8, 2020 License: MIT Imports: 7 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 {
	Name string

	Variables map[string]stick.Value
	Context   *yarf.Context

	// Store our ViewConfig instance so we can use different configs for different views.
	ViewConfig config.ViewConfig
}

View is the struct used to contain an individual page template.

func New

func New(ctx *yarf.Context, viewConfig config.ViewConfig) *View

Creates a new View instance.

func (*View) Render

func (v *View) Render() error

Renders a view .

Jump to

Keyboard shortcuts

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