mirror of
https://github.com/kataras/iris.git
synced 2025-12-18 10:27:06 +00:00
fix _benchmarks/iris-mvc-templates
Former-commit-id: 10b4952308c62b81eb7270b9e0b29ad0bb645bc5
This commit is contained in:
@@ -2,10 +2,16 @@ package controllers
|
||||
|
||||
import "github.com/kataras/iris/mvc"
|
||||
|
||||
type ContactController struct{ mvc.Controller }
|
||||
type ContactController struct{}
|
||||
|
||||
func (c *ContactController) Get() {
|
||||
c.Data["Title"] = "Contact"
|
||||
c.Data["Message"] = "Your contact page."
|
||||
c.Tmpl = "contact.html"
|
||||
var contactView = mvc.View{
|
||||
Name: "contact.html",
|
||||
Data: map[string]interface{}{
|
||||
"Title": "Contact",
|
||||
"Message": "Your contact page.",
|
||||
},
|
||||
}
|
||||
|
||||
func (c *ContactController) Get() mvc.View {
|
||||
return contactView
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user