Skip to content
Permalink
Fetching contributors…
Cannot retrieve contributors at this time
16 lines (11 sloc) 358 Bytes
package controllers
import (
"github.com/kataras/iris/_examples/http_responsewriter/quicktemplate/templates"
"github.com/kataras/iris"
)
// 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)
}
You can’t perform that action at this time.