templates

package
v2.2.5 Latest Latest
Warning

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

Go to latest
Published: Oct 24, 2019 License: MIT Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GetTemplates

func GetTemplates(dir, ext string) ([]string, error)

GetTemplates list files by extension

func WriteHTMLTemplate

func WriteHTMLTemplate(tpl *template.Template, w http.ResponseWriter, content interface{}, status int) error

WriteHTMLTemplate write template name from given template into writer for provided content with HTML minification

func WriteXMLTemplate

func WriteXMLTemplate(tpl *template.Template, w http.ResponseWriter, content interface{}, status int) error

WriteXMLTemplate write template name from given template into writer for provided content with XML minification

Types

This section is empty.

Jump to

Keyboard shortcuts

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