Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var Funcs = template.FuncMap{
"null": null,
"memstats": memstats,
"cmdline": cmdline,
"getwd": getwd,
"hostname": hostname,
"environ": environ,
}
Funcs contains the FuncMap providied and used by this package
Functions ¶
func IfPrintNames ¶
IfPrintNames prints the names of the templates, iff flag is true
func IfPrintTemplate ¶
IfPrintTemplate prints the template names, iff flag is true
Types ¶
type Template ¶
type Template interface { New(name string) *template.Template Clone() (*template.Template, error) Parse(text string) (*template.Template, error) Name() string Templates() []*template.Template ExecuteTemplate(wr io.Writer, name string, data interface{}) error }
Template defines what is used from "html/template"
Click to show internal directories.
Click to hide internal directories.