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

View file

@ -1,7 +1,7 @@
<!DOCTYPE html>
<html>
<head>
<title>{{.Title}}</title>
<title>Tortuous</title>
<!-- Bootstrap -->
<link rel="stylesheet" href="/static/bootstrap/css/bootstrap.min.css">

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})
}