templates

package
v3.37.3 Latest Latest
Warning

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

Go to latest
Published: Feb 19, 2021 License: MIT Imports: 13 Imported by: ? modules, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

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 ResponseHTMLTemplate added in v3.9.0

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

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

func ResponseXMLTemplate added in v3.9.0

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

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

func WriteTemplate added in v3.9.0

func WriteTemplate(tpl *template.Template, w io.Writer, content interface{}, mediatype string) error

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

Types

This section is empty.

Jump to

Keyboard shortcuts

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