Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func AddDefaultData ¶
func AddDefaultData(td *models.TemplateData, r *http.Request) *models.TemplateData
func NewTemplates ¶
NewTemplates set the config for the template package
func RenderTemplate ¶
func RenderTemplate(w http.ResponseWriter, r *http.Request, templt string, td *models.TemplateData)
parseTemplate parses the teplates, render them and send them to the browser
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.