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
369 B

9 years ago
9 years ago
9 years ago
9 years ago
  1. package main
  2. import (
  3. "net/http"
  4. "github.com/flosch/pongo2"
  5. "github.com/zenazn/goji/web"
  6. )
  7. func indexHandler(c web.C, w http.ResponseWriter, r *http.Request) {
  8. indexTpl := pongo2.Must(pongo2.FromCache("templates/index.html"))
  9. err := indexTpl.ExecuteWriter(pongo2.Context{}, w)
  10. if err != nil {
  11. http.Error(w, err.Error(), http.StatusInternalServerError)
  12. }
  13. }