forked from mirror/gin
Updated to use SetHTMLTemplate()
This commit is contained in:
parent
dcad0df8f7
commit
b8ab9554dc
|
@ -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")
|
||||||
|
|
Loading…
Reference in New Issue