Documentation ¶
Overview ¶
Module Display will execute the given "Display Points" ([]string found in uni.Dat["_points"]). If there is no "_points" set in uni.Dat, then it will execute the Display Point which name matches the http Request Path. A given Display Point can contain queries, they will be run, after that, a tpl file which matches the name of the Display Point will be executed as a Go template.
Caution: there is some slightly tricky (ugly?) hackage going on in this package at getFile/getTPath/getModTPath to support the logic behind the fallback files.
Index ¶
- func BeforeDisplay(uni *context.Uni)
- func D(uni *context.Uni)
- func DErr(uni *context.Uni, err error)
- func DisplayFallback(uni *context.Uni, filep string) error
- func DisplayFile(uni *context.Uni, filep string) error
- func DisplayTemplate(uni *context.Uni, filep string) error
- func GetFileAndConvert(root, fi string, opt map[string]interface{}, host string, ...) ([]byte, error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func BeforeDisplay ¶
func DisplayFallback ¶
Tries to display a module file.
func DisplayFile ¶
Tries to display the relative filepath filep as either a template file or a module file.
func DisplayTemplate ¶
Tries to dislay a template file.
Types ¶
This section is empty.