mirror of
https://github.com/go-gitea/gitea
synced 2024-11-06 14:19:03 +01:00
20 lines
412 B
Go
20 lines
412 B
Go
|
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
|
||
|
},
|
||
|
}
|