Unverified Commit 8b41f9fd authored by Philipp Winter's avatar Philipp Winter
Browse files

Only load HTML templates when Web interface is on.

parent d260aa1f
......@@ -132,10 +132,9 @@ func main() {
}
log.SetFlags(log.LstdFlags | log.LUTC)
LoadHtmlTemplates(templatesDir)
if web {
log.Println("Enabling web interface.")
LoadHtmlTemplates(templatesDir)
routes = append(routes,
Route{
"Index",
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment