mirror of
https://github.com/kataras/iris.git
synced 2026-01-10 05:25:58 +00:00
Extend the Handlebars support as requested here https://github.com/kataras/iris/issues/239#issuecomment-229020737
History, Books & examples are updated.
This commit is contained in:
18
HISTORY.md
18
HISTORY.md
@@ -1,9 +1,23 @@
|
||||
# History
|
||||
|
||||
## 3.0.0-rc.2 -> 3.0.0-rc.3
|
||||
|
||||
**How to upgrade**: remove your $GOPATH/src/github.com/kataras folder, open your command-line and run `go get -u github.com/kataras/iris/iris`.
|
||||
|
||||
## 3.0.0-rc.3 -> 3.0.0-rc.4
|
||||
|
||||
**NEW**: **Handlebars** template engine support with all Iris' view engine's functions/helpers support:
|
||||
- `iris.Config.Render.Template.Layout = "layouts/layout.html"`
|
||||
- `config.NoLayout`
|
||||
- **dynamic** optional layout on `context.Render`
|
||||
- **Party specific** layout
|
||||
- `iris.Config.Render.Template.Handlebars.Helpers["myhelper"] = func()...`
|
||||
- `{{ yield }} `
|
||||
- `{{ render }}`
|
||||
- `{{ url "myroute" myparams}}`
|
||||
- `{{ urlpath "myroute" myparams}}`
|
||||
|
||||
For a complete example please navigate [here](https://github.com/iris-contrib/examples/tree/master/templates_handlebars/templates).
|
||||
|
||||
## 3.0.0-rc.2 -> 3.0.0-rc.3
|
||||
|
||||
**Breaking changes**
|
||||
- Move middleware & their configs to the [iris-contrib/middleware](https://github.com/iris-contrib/middleware) repository
|
||||
|
||||
Reference in New Issue
Block a user