Selaa lähdekoodia

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

Javier Provecho Fernandez 8 vuotta sitten
vanhempi
commit
cbf414d600
1 muutettua tiedostoa jossa 8 lisäystä ja 0 poistoa
  1. 8 0
      README.md

+ 8 - 0
README.md

@@ -620,6 +620,14 @@ func main() {
 }
 }
 ```
 ```
 
 
+You may use custom delims
+
+```go
+	r := gin.Default()
+	r.Delims("{[{", "}]}")
+	r.LoadHTMLGlob("/path/to/templates"))
+```  
+
 ### Multitemplate
 ### 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`.
 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`.