docs(readme): add example on custom delims #860

This commit is contained in:
Javier Provecho Fernandez 2017-06-28 00:44:33 +02:00
parent 1a9cba2cc7
commit cbf414d600
1 changed files with 8 additions and 0 deletions

View File

@ -620,6 +620,14 @@ func main() {
}
```
You may use custom delims
```go
r := gin.Default()
r.Delims("{[{", "}]}")
r.LoadHTMLGlob("/path/to/templates"))
```
### Multitemplate
Gin allow by default use only one html.Template. Check [a multitemplate render](https://github.com/gin-contrib/multitemplate) for using features like go 1.6 `block template`.