From cbf414d6002e3e088ad433efb288433513a48319 Mon Sep 17 00:00:00 2001 From: Javier Provecho Fernandez Date: Wed, 28 Jun 2017 00:44:33 +0200 Subject: [PATCH] docs(readme): add example on custom delims #860 --- README.md | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/README.md b/README.md index 7556d48..3397d6b 100644 --- a/README.md +++ b/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 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`.