views

package
v0.0.0-...-063ea66 Latest Latest
Warning

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

Go to latest
Published: Feb 10, 2025 License: BSD-3-Clause Imports: 3 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 {
	Template *template.Template
	Layout   string
}

func NewView

func NewView(opts *ViewOpts) *View

func NewView(layout string, partialDir string, layoutDir string, files ...string) *View {

func (*View) Render

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

type ViewOpts

type ViewOpts struct {
	Layout      string
	LayoutDir   string
	PartialsDir string
	Files       []string
}

Jump to

Keyboard shortcuts

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