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

18 lines
311 B
Go
Raw Normal View History

package controllers
import "github.com/kataras/iris/v12/mvc"
type ContactController struct{}
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
}