web provider

This commit is contained in:
emile 2015-09-08 22:57:27 +02:00
parent 182a829284
commit fce28007f6
2 changed files with 2 additions and 3 deletions

3
web.go
View file

@ -17,7 +17,6 @@ type WebProvider struct {
}
type Page struct {
Title string
Configuration Configuration
}
@ -41,5 +40,5 @@ func GetHtmlConfigHandler(response http.ResponseWriter, request *http.Request) {
if err != nil {
http.Error(response, fmt.Sprintf("error parsing url %v", err), 500)
}
templates.ExecuteTemplate(response, "configuration.html", Page{Title: "Home", Configuration:*currentConfiguration})
templates.ExecuteTemplate(response, "configuration.html", Page{Configuration:*currentConfiguration})
}