MailHog/mailhog/http/server.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")
}