2017-11-21 10:34:04 +01:00
|
|
|
package controllers
|
|
|
|
|
2019-10-25 00:27:02 +02:00
|
|
|
import "github.com/kataras/iris/v12/mvc"
|
2017-11-21 10:34:04 +01:00
|
|
|
|
2017-12-22 09:18:31 +01:00
|
|
|
type HomeController struct{}
|
2017-11-21 10:34:04 +01:00
|
|
|
|
|
|
|
func (c *HomeController) Get() mvc.Result {
|
|
|
|
return mvc.View{Name: "index.html"}
|
|
|
|
}
|
|
|
|
|
|
|
|
func (c *HomeController) GetAbout() mvc.Result {
|
|
|
|
return mvc.View{
|
|
|
|
Name: "about.html",
|
|
|
|
Data: map[string]interface{}{
|
|
|
|
"Title": "About Page",
|
2019-08-17 09:06:20 +02:00
|
|
|
"Message": "Your application description page.",
|
|
|
|
},
|
2017-11-21 10:34:04 +01:00
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
func (c *HomeController) GetContact() mvc.Result {
|
|
|
|
return mvc.View{
|
|
|
|
Name: "contact.html",
|
|
|
|
Data: map[string]interface{}{
|
|
|
|
"Title": "Contact Page",
|
2019-08-17 09:06:20 +02:00
|
|
|
"Message": "Your application description page.",
|
|
|
|
},
|
2017-11-21 10:34:04 +01:00
|
|
|
}
|
|
|
|
}
|