summary refs log tree commit diff stats
path: root/handlers.go
diff options
context:
space:
mode:
Diffstat (limited to 'handlers.go')
-rw-r--r--handlers.go8
1 files changed, 5 insertions, 3 deletions
diff --git a/handlers.go b/handlers.go
index 3b23761..961ac4f 100644
--- a/handlers.go
+++ b/handlers.go
@@ -15,9 +15,11 @@ import (
 // handles "/"
 func indexHandler(w http.ResponseWriter, _ *http.Request) {
 	w.Header().Set("Content-Type", htmlutf8)
-	n, err := w.Write([]byte("getwtxt v" + getwtxt))
-	if err != nil || n == 0 {
-		log.Printf("Error writing to HTTP stream: %v bytes,  %v\n", n, err)
+	err := tmpls.ExecuteTemplate(w, "index.html", confObj.Instance)
+	if err != nil {
+		log.Printf("Error writing to HTTP stream: %v\n", err)
+		http.Error(w, err.Error(), http.StatusInternalServerError)
+		return
 	}
 
 }
vision' href='/akkartik/mu/blame/mu.vim?h=hlt&id=0c1450438fcb0fe3f53fcb9268f2f2c0708bb252'>^
7fefb8fd ^






b38d7fff ^

9a81d746 ^
0a6d127d ^
b38d7fff ^
b085378e ^



c517316b ^
b085378e ^
c517316b ^
b38d7fff ^
b085378e ^
e82dc626 ^
9a81d746 ^
a6d9bd9b ^
af7349d5 ^
a6d9bd9b ^
e3894819 ^
b38d7fff ^
9a81d746 ^
a6d9bd9b ^


9a81d746 ^
3e1349d2 ^
3e1349d2 ^
f918675c ^
650a201d ^
af7349d5 ^
3e1349d2 ^
af7349d5 ^
3e1349d2 ^


dd660682 ^
01ce563d ^
fbf0536d ^
b38d7fff ^
e82dc626 ^
f918675c ^


b085378e ^
e82dc626 ^
38f0b91a ^
f0c55e6b ^
e82dc626 ^
f0c55e6b ^


e82dc626 ^



f0c55e6b ^





e82dc626 ^

458ee5e3 ^
e82dc626 ^
b18bea70 ^
f0c55e6b ^
816ffe20 ^
458ee5e3 ^
f0c55e6b ^
458ee5e3 ^
b085378e ^
f0c55e6b ^
734fb226 ^
f0c55e6b ^
458ee5e3 ^
b38d7fff ^

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99