Documentation ¶
Overview ¶
Package templates handles building and showing HTML files used to build the GUI.
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var Config = config{ PathToTemplates: "./website/templates/", Development: false, UseLocalFiles: false, }
Config is a copy of the config struct with some defaults set
Functions ¶
func Load ¶
func Load(w http.ResponseWriter, templateName string, data interface{})
Load shows a template to the client, show the GUI
Types ¶
type NotificationPage ¶
type NotificationPage struct { PanelColor string Title string Message interface{} //interface{} because this could be a string or an error BtnColor string LinkHref string BtnText string }
NotificationPage is used to display error or warning messages in the GUI Defining a struct makes it so the GUI is consistently displayed.
Click to show internal directories.
Click to hide internal directories.