Documentation ¶
Index ¶
- type Render
- func (r *Render) BlocksPage(writer http.ResponseWriter, request *http.Request, view, layout string, ...) error
- func (r *Render) DefaultData(templateData *TemplateData, request *http.Request) *TemplateData
- func (r *Render) GoPage(writer http.ResponseWriter, request *http.Request, view string, data any) error
- func (r *Render) JetPage(writer http.ResponseWriter, request *http.Request, view string, ...) error
- func (r *Render) Page(writer http.ResponseWriter, request *http.Request, view, layout string, ...) error
- type TemplateData
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Render ¶
type Render struct { Renderer string RootPath string Secure bool Port string ServerName string JetViews *jet.Set BlocksViews *blocks.Blocks Session *scs.SessionManager }
func (*Render) BlocksPage ¶ added in v1.0.1
func (r *Render) BlocksPage(writer http.ResponseWriter, request *http.Request, view, layout string, data any) error
BlocksPage The Blocks' engine template renderer function.
func (*Render) DefaultData ¶
func (r *Render) DefaultData(templateData *TemplateData, request *http.Request) *TemplateData
func (*Render) GoPage ¶
func (r *Render) GoPage(writer http.ResponseWriter, request *http.Request, view string, data any) error
GoPage The default go template engine renderer function.
Click to show internal directories.
Click to hide internal directories.