func parseTemplate(staticPath, filename string) (*template.Template, error) {
	if staticPath == "" {
		return nil, nil
	}
	templatePath := filepath.Join(staticPath, "html/worker/"+filename)
	return template.New(filename).Funcs(template.FuncMap{
		"truncate": truncate,
		"timefmt":  formatTime,
	}).ParseFiles(templatePath)
}
// Parse the template for the status page.
Parse the template for the status page.
// Parse the template for the status page .
func parseTemplate(staticPath, filename string) (*template.Template, error) {
	if staticPath == "" {
		return nil, nil
	}
	templatePath := filepath.Join(staticPath, "html/worker/"+filename)
	return template.New(filename).Funcs(template.FuncMap{
		"truncate": truncate,
		"timefmt":  formatTime,
	}).ParseFiles(templatePath)
}
func parseTemplate ( staticPath , filename string ) ( * template . Template , error ) { if staticPath == " " { return nil , nil } templatePath := filepath . Join ( staticPath , " " + filename ) return template . New ( filename ) . Funcs ( template . FuncMap { " " : truncate , " " : formatTime , } ) . ParseFiles ( templatePath ) }
Parse the template for the status page.
Parse the template for the status page .