mirror of
https://github.com/kataras/iris.git
synced 2025-01-24 19:21:03 +01:00
16 lines
369 B
Go
16 lines
369 B
Go
|
package controllers
|
||
|
|
||
|
import (
|
||
|
"github.com/kataras/iris/_examples/http_responsewriter/quicktemplate/templates"
|
||
|
|
||
|
"github.com/kataras/iris/context"
|
||
|
)
|
||
|
|
||
|
// Index renders our ../templates/index.qtpl file using the compiled ../templates/index.qtpl.go file.
|
||
|
func Index(ctx context.Context) {
|
||
|
tmpl := &templates.Index{}
|
||
|
|
||
|
// render the template
|
||
|
ExecuteTemplate(ctx, tmpl)
|
||
|
}
|