mirror of
https://github.com/kataras/iris.git
synced 2025-03-14 08:16:28 +01:00
Add a changelog entry for the *Framework.Render
usage
Former-commit-id: 8d27f0f8fb547670d02bc24e6bb42d83095e5722
This commit is contained in:
parent
b60142a2da
commit
a0db147479
|
@ -2,7 +2,7 @@
|
||||||
|
|
||||||
**How to upgrade**: Open your command-line and execute this command: `go get -u gopkg.in/kataras/iris.v6`.
|
**How to upgrade**: Open your command-line and execute this command: `go get -u gopkg.in/kataras/iris.v6`.
|
||||||
|
|
||||||
## Looking for further support?
|
## Looking for free support?
|
||||||
|
|
||||||
http://support.iris-go.com
|
http://support.iris-go.com
|
||||||
|
|
||||||
|
@ -58,11 +58,11 @@ app.Render(buff, "my_template.html", nil)
|
||||||
```
|
```
|
||||||
|
|
||||||
```go
|
```go
|
||||||
// you can take the app(*Framework instance) from a *Context too:
|
// you can take the app(*Framework instance) via *Context.Framework() too:
|
||||||
|
|
||||||
app.Get("/send_mail", func(ctx *iris.Context){
|
app.Get("/send_mail", func(ctx *iris.Context){
|
||||||
buff := &bytes.Buffer{}
|
buff := &bytes.Buffer{}
|
||||||
ctx.Framework().Render()(buff, "my_template.html", nil)
|
ctx.Framework().Render(buff, "my_template.html", nil)
|
||||||
// ...
|
// ...
|
||||||
})
|
})
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue
Block a user