aboutsummaryrefslogtreecommitdiff
blob: 97039fd0e4316bbbe3bed782f104be84e2dc91e0 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
package arches

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

// Index renders a template to show a the landing page containing links to all arches feeds
func Index(w http.ResponseWriter, r *http.Request) {
	templates := template.Must(
		template.Must(
			template.New("index").
				ParseGlob("web/templates/layout/*.tmpl")).
			ParseGlob("web/templates/arches/index.tmpl"))

	templates.ExecuteTemplate(w, "index.tmpl", getPageData())
}