blob: 81dc21f5653bcccb827213d0bb10494b8228b8a2 [file] [log] [blame]
// Copyright 2012 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
package main
import (
"mime"
"llvm.org/llgo/third_party/go.tools/present"
_ "llvm.org/llgo/third_party/go.tools/playground"
)
var basePath = "./present/"
func init() {
initTemplates(basePath)
playScript(basePath, "HTTPTransport")
present.PlayEnabled = true
// App Engine has no /etc/mime.types
mime.AddExtensionType(".svg", "image/svg+xml")
}
func playable(c present.Code) bool {
return present.PlayEnabled && c.Play && c.Ext == ".go"
}