demonstrates variable

This commit is contained in:
sm
2017-01-26 20:16:33 -08:00
parent 3c2003767e
commit e9edaf13ee
3 changed files with 9 additions and 1 deletions
+2 -1
View File
@@ -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 {