add Delims config doc

Delims is not documented
This commit is contained in:
Fuad Ar-Radhi
2020-12-29 07:12:53 +07:00
committed by GitHub
parent 5db59e83cc
commit e687287e7a

View File

@@ -108,6 +108,7 @@ Use new instance with config:
},
},
DisableCache: true,
Delims: Delims{Left: "{{", Right: "}}"},
})
//Set new instance
@@ -137,6 +138,7 @@ Use multiple instance with config:
},
},
DisableCache: true,
Delims: Delims{Left: "{{", Right: "}}"},
})
//write http.ResponseWriter
@@ -157,6 +159,7 @@ Use multiple instance with config:
},
},
DisableCache: true,
Delims: Delims{Left: "{{", Right: "}}"},
})
//write http.ResponseWriter
@@ -179,6 +182,7 @@ goview.Config{
// more funcs
},
DisableCache: false, //if disable cache, auto reload template file for debug.
Delims: Delims{Left: "{{", Right: "}}"},
}
```
@@ -927,4 +931,4 @@ See [_examples/](https://github.com/foolin/goview/blob/master/_examples/) for a
### Todo
[ ] Add Partials support directory or glob
[ ] Add functions support.