|
|
|
@ -4,6 +4,7 @@ import (
|
|
|
|
|
"fmt" |
|
|
|
|
"net/http" |
|
|
|
|
"path/filepath" |
|
|
|
|
"time" |
|
|
|
|
|
|
|
|
|
assetfs "github.com/elazarl/go-bindata-assetfs" |
|
|
|
|
) |
|
|
|
@ -49,7 +50,7 @@ func NewSite(sm *http.ServeMux, static, templates string) *Site {
|
|
|
|
|
|
|
|
|
|
func (s *Site) Home(w http.ResponseWriter, req *http.Request) { |
|
|
|
|
c := map[string]string{ |
|
|
|
|
"time": "asdf", |
|
|
|
|
"time": time.Now().Format(time.Stamp), |
|
|
|
|
} |
|
|
|
|
tmpl, err := s.tmpl.Get("home") |
|
|
|
|
if err != nil { |
|
|
|
|