You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
22 lines
429 B
22 lines
429 B
4 years ago
|
// +build go1.6
|
||
|
|
||
|
package render
|
||
|
|
||
|
import (
|
||
|
"fmt"
|
||
|
"html/template"
|
||
|
)
|
||
|
|
||
|
// Included helper functions for use when rendering HTML.
|
||
|
var helperFuncs = template.FuncMap{
|
||
|
"yield": func() (string, error) {
|
||
|
return "", fmt.Errorf("yield called with no layout defined")
|
||
|
},
|
||
|
"partial": func() (string, error) {
|
||
|
return "", fmt.Errorf("block called with no layout defined")
|
||
|
},
|
||
|
"current": func() (string, error) {
|
||
|
return "", nil
|
||
|
},
|
||
|
}
|