view

package
v0.0.0-...-36c47eb Latest Latest
Warning

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

Go to latest
Published: Apr 6, 2020 License: BSD-3-Clause Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var LayoutDir string = "view/layout"

Functions

This section is empty.

Types

type View

type View struct {
	Template *template.Template
	Layout   string
}

func NewView

func NewView(layout string, file string) *View

func (*View) Render

func (v *View) Render(w http.ResponseWriter, data ...interface{}) error

type ViewData

type ViewData struct {
	Data    interface{}
	BaseUrl string
}

Jump to

Keyboard shortcuts

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