mirror of https://github.com/gin-gonic/gin.git
docs(readme): add sections to template docs
This commit is contained in:
parent
ee7b912a24
commit
e4fd80c627
|
@ -645,6 +645,8 @@ templates/users/index.tmpl
|
|||
{{ end }}
|
||||
```
|
||||
|
||||
#### Custom Template renderer
|
||||
|
||||
You can also use your own html template render
|
||||
|
||||
```go
|
||||
|
@ -658,6 +660,8 @@ func main() {
|
|||
}
|
||||
```
|
||||
|
||||
#### Custom Delimiters
|
||||
|
||||
You may use custom delims
|
||||
|
||||
```go
|
||||
|
@ -666,7 +670,7 @@ You may use custom delims
|
|||
r.LoadHTMLGlob("/path/to/templates"))
|
||||
```
|
||||
|
||||
#### Add custom template funcs
|
||||
#### Custom Template Funcs
|
||||
|
||||
main.go
|
||||
|
||||
|
|
Loading…
Reference in New Issue