INNER CODE UNIT · Go
func
machinebox/remoto · console/www/main.go:36
func (s *server) handleIndex() http.HandlerFunc {
var init sync.Once
var err error
var tpl *plush.Template
return func(w http.ResponseWriter, r *http.Request) {
if r.URL.Path != "/" {
http.NotFound(w, r)
return
}
ctx := appengine.NewContext(r)
init.Do(func() {
var b string
b, err = s.readFiles(
"templates/index.plush.html",
"templates/_layout.plush.html",
)
if err != nil {
return