docs(readme): add sections to template docs

This commit is contained in:
Javier Provecho Fernandez 2017-07-05 16:22:58 +02:00 committed by GitHub
parent ee7b912a24
commit e4fd80c627
1 changed files with 5 additions and 1 deletions

View File

@ -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