Got cool stuff working
This commit is contained in:
18
template_debug.go
Normal file
18
template_debug.go
Normal file
@@ -0,0 +1,18 @@
|
||||
// / +build !release
|
||||
package main
|
||||
|
||||
import (
|
||||
"html/template"
|
||||
"io"
|
||||
"net/http"
|
||||
)
|
||||
|
||||
const staticFiles = http.Dir("./static")
|
||||
|
||||
func renderTemplate(wr io.Writer) error {
|
||||
templates, err := template.ParseGlob("web/*.gohtml")
|
||||
if err != nil {
|
||||
return err
|
||||
}
|
||||
return templates.Execute(wr, nil)
|
||||
}
|
||||
Reference in New Issue
Block a user