Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Render ¶
type Render struct { Renderer string // for rendering engine RootPath string // for views Secure bool // is http mode Port string ServerName string JetViews *jet.Set Session *scs.SessionManager }
func (*Render) GoPage ¶
func (f *Render) GoPage(w http.ResponseWriter, r *http.Request, view string, data interface{}) error
GoPage renders the standard Go template
type TemplateData ¶
type TemplateData struct { IsAuthenticated bool IntMap map[string]int StringMap map[string]string FloatMap map[string]float64 Data map[string]interface{} CSRFToken string Port string ServerName string Secure bool Error string // for handling errors on jet views Flash string // for handling flash messages on jet views }
Click to show internal directories.
Click to hide internal directories.