templates

package
v0.0.0-...-bc5a6c4 Latest Latest
Warning

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

Go to latest
Published: Jun 19, 2023 License: MIT Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Renderer

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

Renderer is used to store state before a template is executed.

func NewRenderer

func NewRenderer(context interface{}, filenames ...string) *Renderer

NewRenderer creates a new renderer.

func (*Renderer) Handler

func (r *Renderer) Handler(w http.ResponseWriter, _ *http.Request)

Handler executes the templates and handles errors. Does not attempt to render the error page template to avoid possible infinite recursion.

Jump to

Keyboard shortcuts

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