mirror of
https://github.com/kataras/iris.git
synced 2026-01-24 20:35:59 +00:00
Developers can ignore this update. Replace the template engines with a new cross-framework package (kataras/go-template)
This commit is contained in:
@@ -546,7 +546,7 @@ func (ctx *Context) Gzip(b []byte, status int) {
|
||||
func (ctx *Context) RenderWithStatus(status int, name string, binding interface{}, options ...map[string]interface{}) error {
|
||||
ctx.SetStatusCode(status)
|
||||
if strings.IndexByte(name, '.') > -1 { //we have template
|
||||
return ctx.framework.templates.getBy(name).execute(ctx, name, binding, options...)
|
||||
return ctx.framework.templates.render(ctx, name, binding, options...)
|
||||
}
|
||||
return ctx.framework.responses.getBy(name).render(ctx, binding, options...)
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user