iris/_benchmarks/iris-mvc-templates/controllers/index_controller.go

11 lines
196 B
Go
Raw Normal View History

package controllers
import "github.com/kataras/iris/mvc"
type IndexController struct{ mvc.Controller }
func (c *IndexController) Get() {
c.Data["Title"] = "Home Page"
c.Tmpl = "index.html"
}