bdf-preview: style corrections
This commit is contained in:
parent
81927e9017
commit
5cef6b240a
|
@ -27,12 +27,12 @@ var tmpl = template.Must(template.New("list").Parse(`
|
||||||
<th>Name</th>
|
<th>Name</th>
|
||||||
<th>Preview</th>
|
<th>Preview</th>
|
||||||
<tr>
|
<tr>
|
||||||
{{range $k, $v := . }}
|
{{- range $k, $v := . }}
|
||||||
<tr>
|
<tr>
|
||||||
<td>{{ $k }}</td>
|
<td>{{ $k }}</td>
|
||||||
<td><img src='?name={{ $k }}'></td>
|
<td><img src='?name={{ $k }}'></td>
|
||||||
</tr>
|
</tr>
|
||||||
{{end}}
|
{{- end }}
|
||||||
</table>
|
</table>
|
||||||
</body></html>
|
</body></html>
|
||||||
`))
|
`))
|
||||||
|
@ -87,7 +87,7 @@ func main() {
|
||||||
fonts[filename] = fontItem{Font: font, Preview: img}
|
fonts[filename] = fontItem{Font: font, Preview: img}
|
||||||
}
|
}
|
||||||
|
|
||||||
log.Println("Starting server")
|
log.Println("starting server")
|
||||||
http.HandleFunc("/", handle)
|
http.HandleFunc("/", handle)
|
||||||
log.Fatal(http.ListenAndServe(":8080", nil))
|
log.Fatal(http.ListenAndServe(":8080", nil))
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue