Documentation ¶
Index ¶
- type GoTemplateType
- func (hdlr *GoTemplateType) InitializeWithConfigData(next http.Handler, gCfg *cfg.ServerGlobalConfigType, serverName string, ...) (err error)
- func (hdlr *GoTemplateType) PreValidate(gCfg *cfg.ServerGlobalConfigType, cfgData map[string]interface{}, ...) (err error)
- func (hdlr *GoTemplateType) ServeHTTP(www http.ResponseWriter, req *http.Request)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type GoTemplateType ¶
type GoTemplateType struct { Next http.Handler // Paths []string // Paths that match this TemplateParamName string // The name of the parameter that specifies the top level template for rendering this. TemplateName string // Default file name of template (also template name) if not specified on URL TemplateRoot []string // Set of directories to search for template in TemplateLibraryName []string // set of files that will be read as libraries of templates for processing with this page -- xyzzy - TODO Root []string // lookup of template in Root if Root != "" LineNo int // }
func NewGoTemplateServer ¶
Parameterized for testing? or just change the test
func (*GoTemplateType) InitializeWithConfigData ¶
func (hdlr *GoTemplateType) InitializeWithConfigData(next http.Handler, gCfg *cfg.ServerGlobalConfigType, serverName string, pNo, callNo int) (err error)
func (*GoTemplateType) PreValidate ¶
func (hdlr *GoTemplateType) PreValidate(gCfg *cfg.ServerGlobalConfigType, cfgData map[string]interface{}, serverName string, pNo, callNo int) (err error)
func (*GoTemplateType) ServeHTTP ¶
func (hdlr *GoTemplateType) ServeHTTP(www http.ResponseWriter, req *http.Request)
Click to show internal directories.
Click to hide internal directories.