Files
goreportcard/handlers/about.go
2018-06-10 23:20:46 -07:00

15 lines
375 B
Go

package handlers
import (
"net/http"
"text/template"
)
// AboutHandler handles the about page
func AboutHandler(w http.ResponseWriter, r *http.Request) {
t := template.Must(template.New("about.html").Delims("[[", "]]").ParseFiles("templates/about.html", "templates/footer.html"))
t.Execute(w, map[string]interface{}{
"google_analytics_key": googleAnalyticsKey,
})
}