mirror of
https://github.com/kataras/iris.git
synced 2025-12-19 19:07:06 +00:00
fix _benchmarks/iris-mvc-templates
Former-commit-id: 10b4952308c62b81eb7270b9e0b29ad0bb645bc5
This commit is contained in:
@@ -2,9 +2,13 @@ package controllers
|
||||
|
||||
import "github.com/kataras/iris/mvc"
|
||||
|
||||
type IndexController struct{ mvc.Controller }
|
||||
type IndexController struct{}
|
||||
|
||||
func (c *IndexController) Get() {
|
||||
c.Data["Title"] = "Home Page"
|
||||
c.Tmpl = "index.html"
|
||||
var indexView = mvc.View{
|
||||
Name: "index.html",
|
||||
Data: map[string]interface{}{"Title": "Home Page"},
|
||||
}
|
||||
|
||||
func (c *IndexController) Get() mvc.View {
|
||||
return indexView
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user