mirror of
https://gitlab.com/ric_harvey/MailHog.git
synced 2024-11-23 22:34:04 +00:00
14 lines
279 B
Go
14 lines
279 B
Go
package http
|
|
|
|
import (
|
|
"github.com/ian-kent/gotcha/http"
|
|
"html/template"
|
|
)
|
|
|
|
func Index(session *http.Session) {
|
|
html, _ := session.RenderTemplate("index.html")
|
|
|
|
session.Stash["Page"] = "Browse"
|
|
session.Stash["Content"] = template.HTML(html)
|
|
session.Render("layout.html")
|
|
}
|