mirror of
https://github.com/kataras/iris.git
synced 2025-01-24 11:11:03 +01:00
ed45c77be5
Former-commit-id: ed635ee95de7160cde11eaabc0c1dcb0e460a620
16 lines
362 B
Go
16 lines
362 B
Go
package controllers
|
|
|
|
import (
|
|
"github.com/kataras/iris/v12/_examples/response-writer/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)
|
|
}
|