mirror of
https://github.com/foolin/goview.git
synced 2025-09-26 19:01:15 +08:00
add Delims config doc
Delims is not documented
This commit is contained in:
@@ -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.
|
||||
|
||||
|
||||
|
Reference in New Issue
Block a user