mirror of https://github.com/gin-gonic/gin.git
Fixed some text in the readme
The code that was there didn't work. Now it does
This commit is contained in:
parent
3253ef5b75
commit
02dc17de4b
|
@ -208,8 +208,8 @@ func main() {
|
||||||
r := gin.Default()
|
r := gin.Default()
|
||||||
r.LoadHTMLTemplates("templates/*")
|
r.LoadHTMLTemplates("templates/*")
|
||||||
r.GET("index", func(c *gin.Context) {
|
r.GET("index", func(c *gin.Context) {
|
||||||
obj := gin.h{"title": "Main website"}
|
obj := gin.H{"title": "Main website"}
|
||||||
c.HTML(200, "templates/index.tmpl", obj)
|
c.HTML(200, "index.tmpl", obj)
|
||||||
})
|
})
|
||||||
}
|
}
|
||||||
```
|
```
|
||||||
|
|
Loading…
Reference in New Issue