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 // Renderer is the name of the rendering engine that we want to use RootPath string // path to the folder that holds the views Secure bool // true if we want to use HTTPS Port string ServerName string JetViews *jet.Set Session *scs.SessionManager }
func (*Render) GoPage ¶
func (r *Render) GoPage(w http.ResponseWriter, req *http.Request, view string, data interface{}) error
GoPage renders a 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 Flash string }
TemplateData is a struct that holds the data that we want to pass to the templates
Click to show internal directories.
Click to hide internal directories.