Updated to use SetHTMLTemplate()

This commit is contained in:
Remco 2014-12-02 15:28:38 +01:00
parent dcad0df8f7
commit b8ab9554dc
1 changed files with 1 additions and 1 deletions

View File

@ -340,7 +340,7 @@ import "html/template"
func main() { func main() {
r := gin.Default() r := gin.Default()
html := template.Must(template.ParseFiles("file1", "file2")) html := template.Must(template.ParseFiles("file1", "file2"))
r.HTMLTemplates = html r.SetHTMLTemplate(html)
// Listen and server on 0.0.0.0:8080 // Listen and server on 0.0.0.0:8080
r.Run(":8080") r.Run(":8080")