summaryrefslogtreecommitdiffstats
path: root/main.go
diff options
context:
space:
mode:
authorraylu <raylu@mixpanel.com>2011-09-11 03:05:15 -0700
committerraylu <raylu@mixpanel.com>2011-09-11 03:05:15 -0700
commitc4bdcf9ff6814516da1940b4f774d47ca9e0b73b (patch)
tree8e177b85edf2aedc88e35cf58fc4c587a2f28d60 /main.go
parenta6b266a2e68af686c96890fd341953bdb1bff481 (diff)
downloadaudioaxis-c4bdcf9ff6814516da1940b4f774d47ca9e0b73b.tar.xz
update for go release 60
Diffstat (limited to 'main.go')
-rw-r--r--main.go6
1 files changed, 3 insertions, 3 deletions
diff --git a/main.go b/main.go
index 522f0e7..63aaf43 100644
--- a/main.go
+++ b/main.go
@@ -3,7 +3,7 @@ package main
import (
"fmt"
"http"
- "exp/template"
+ "template"
"os"
"json"
"strconv"
@@ -26,7 +26,7 @@ var templates *template.Set
const debug = false
func main() {
- templates = template.SetMust(template.ParseTemplateFiles("templates/*.html"))
+ templates = template.SetMust(template.ParseTemplateGlob("templates/*.html"))
rand.Seed(time.Nanoseconds())
initDb()
@@ -47,7 +47,7 @@ func main() {
func renderPage(w http.ResponseWriter, page string, data interface{}) {
if debug {
var err os.Error
- templates, err = template.ParseTemplateFiles("templates/*.html")
+ templates, err = template.ParseTemplateGlob("templates/*.html")
if err != nil {
fmt.Fprintln(os.Stderr, err.String())
http.Error(w, err.String(), http.StatusInternalServerError)