Contains the Concourse pipeline definition for building a line-server container
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

17 lines
396 B

package main
import (
"net/http"
"github.com/flosch/pongo2"
"github.com/zenazn/goji/web"
)
func indexHandler(c web.C, w http.ResponseWriter, r *http.Request) {
indexTpl := pongo2.Must(pongo2.FromCache("templates/index.html"))
err := indexTpl.ExecuteWriter(pongo2.Context{"sitename": Config.siteName}, w)
if err != nil {
http.Error(w, err.Error(), http.StatusInternalServerError)
}
}