aboutsummaryrefslogtreecommitdiff
path: root/cmd/blog/appengine.go
diff options
context:
space:
mode:
authorAndrew Gerrand <adg@golang.org>2013-03-08 09:22:40 +1100
committerAndrew Gerrand <adg@golang.org>2013-03-08 09:22:40 +1100
commit0ee9872fcd5cf9023cb43a68faf67203cbe81295 (patch)
treefaa873e0163e1d1b35e86b812de77afd3da7f6bb /cmd/blog/appengine.go
parentc26ca9cbba2bc725e1d7d26754ac5167a44ddb76 (diff)
go.blog: blog server
R=golang-dev, dsymonds, r CC=golang-dev https://golang.org/cl/7382064
Diffstat (limited to 'cmd/blog/appengine.go')
-rw-r--r--cmd/blog/appengine.go19
1 files changed, 19 insertions, 0 deletions
diff --git a/cmd/blog/appengine.go b/cmd/blog/appengine.go
new file mode 100644
index 0000000..174efe4
--- /dev/null
+++ b/cmd/blog/appengine.go
@@ -0,0 +1,19 @@
+// Copyright 2013 The Go Authors. All rights reserved.
+// Use of this source code is governed by a BSD-style
+// license that can be found in the LICENSE file.
+
+// +build appengine
+
+// This file implements an App Engine blog server.
+
+package main
+
+import "net/http"
+
+func init() {
+ s, err := NewServer("/", "content/", "template/")
+ if err != nil {
+ panic(err)
+ }
+ http.Handle("/", s)
+}