templates

package
v0.0.0-...-5ce57be Latest Latest
Warning

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

Go to latest
Published: Sep 8, 2018 License: AGPL-3.0 Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Render

func Render(wr io.Writer, template string, data interface{})

Types

type CommonData

type CommonData struct {
	Lang            string
	MetaTitle       string
	MetaDescription string
	CSRF            template.HTML
	Flashes         []interface{}
	CurrentURL      template.URL
}

func ReadCommonData

func ReadCommonData(w http.ResponseWriter, r *http.Request) CommonData

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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