github.com/aleksi/gonuts.io@v0.0.0-20130622121132-3b0f2d1999fb/app/gonuts/controllers/about.go (about)

     1  package controllers
     2  
     3  import (
     4  	"appengine"
     5  	"bytes"
     6  	"html/template"
     7  	"net/http"
     8  
     9  	"gonuts"
    10  )
    11  
    12  func aboutHandler(c appengine.Context, w http.ResponseWriter, r *http.Request) {
    13  	var content bytes.Buffer
    14  	gonuts.PanicIfErr(Base.ExecuteTemplate(&content, "about.html", ""))
    15  
    16  	bd := BaseData{
    17  		Tabtitle: "About",
    18  		Title:    "About",
    19  		Content:  template.HTML(content.String()),
    20  	}
    21  	gonuts.PanicIfErr(Base.Execute(w, &bd))
    22  }