mirror of
https://gitlab.com/ric_harvey/MailHog.git
synced 2024-11-27 16:24: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")
|
|
}
|