aboutsummaryrefslogtreecommitdiffstats
path: root/serve.go
diff options
context:
space:
mode:
authorbnewbold <bnewbold@robocracy.org>2012-04-22 23:07:35 -0400
committerbnewbold <bnewbold@robocracy.org>2012-04-22 23:07:35 -0400
commit7b6696714142de8deeb5ef4f144ac3ecf8116e3e (patch)
tree5343926cb2b008219e43c1c6e9ce0252509ffc6a /serve.go
parentf9ef9d242c4d1de392269379598d2a05109d44ad (diff)
downloadbommom-7b6696714142de8deeb5ef4f144ac3ecf8116e3e.tar.gz
bommom-7b6696714142de8deeb5ef4f144ac3ecf8116e3e.zip
basic HTML templating
Diffstat (limited to 'serve.go')
-rw-r--r--serve.go4
1 files changed, 2 insertions, 2 deletions
diff --git a/serve.go b/serve.go
index dff2006..f54ca0e 100644
--- a/serve.go
+++ b/serve.go
@@ -49,8 +49,8 @@ func serveCmd() {
var err error
// load and parse templates
- tmplHome = template.Must(template.ParseFiles(*templatePath + "/home.html"))
- tmplView = template.Must(template.ParseFiles(*templatePath + "/view.html"))
+ baseTmplPath := *templatePath + "/base.html"
+ tmplHome = template.Must(template.ParseFiles(*templatePath + "/home.html", baseTmplPath))
if err != nil {
log.Fatal(err)
}