1
0
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:
Gerasimos Maropoulos
2016-09-02 06:05:44 +03:00
parent 6163726bc5
commit c38a9b2459
8 changed files with 46 additions and 271 deletions

View File

@@ -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...)
}