2017-07-18 20:17:23 +02:00
|
|
|
package controllers
|
|
|
|
|
|
|
|
import (
|
2020-06-07 14:26:06 +02:00
|
|
|
"github.com/kataras/iris/v12/_examples/response-writer/quicktemplate/templates"
|
2017-07-18 20:17:23 +02:00
|
|
|
|
2019-10-25 00:27:02 +02:00
|
|
|
"github.com/kataras/iris/v12"
|
2017-07-18 20:17:23 +02:00
|
|
|
)
|
|
|
|
|
|
|
|
// Index renders our ../templates/index.qtpl file using the compiled ../templates/index.qtpl.go file.
|
2017-08-27 19:35:23 +02:00
|
|
|
func Index(ctx iris.Context) {
|
2017-07-18 20:17:23 +02:00
|
|
|
tmpl := &templates.Index{}
|
|
|
|
|
|
|
|
// render the template
|
|
|
|
ExecuteTemplate(ctx, tmpl)
|
|
|
|
}
|