summaryrefslogtreecommitdiff
path: root/pages/landing.go
blob: d8c4f540a11ef915304eef2b834235502efd0e88 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
package pages

import (
	_ "embed"
	"html/template"
	"net/http"
)

//go:embed landing.gohtml
var landContent string
var landTmpl = template.Must(template.New("delayed.link").Parse(landContent))

func Land(w http.ResponseWriter, r *http.Request) {
	w.WriteHeader(http.StatusOK)
	err := landTmpl.Execute(w, nil)
	if err != nil {
		http.Error(w, err.Error(), http.StatusInternalServerError)
	}
}