iris/_examples/view/quicktemplate/controllers/index.go
Gerasimos (Makis) Maropoulos 7bb2223226 fix #1531 and introduce the 'Configuration.ResetOnFireErrorCode' (read HISTORY.md)
Former-commit-id: 84f1e894378a6dfd94e0bf057f4037e35aee0c4f
2020-06-08 05:16:55 +03:00

16 lines
351 B
Go

package controllers
import (
"github.com/kataras/iris/v12/_examples/view/quicktemplate/templates"
"github.com/kataras/iris/v12"
)
// Index renders our ../templates/index.qtpl file using the compiled ../templates/index.qtpl.go file.
func Index(ctx iris.Context) {
tmpl := &templates.Index{}
// render the template
ExecuteTemplate(ctx, tmpl)
}