package webcmd import ( "fmt" "net/http" ) func (this *App) ServePartial_Header(w http.ResponseWriter, slug string) { fmt.Fprint(w, ` `+hesc(this.cfg.AppTitle)+`

`+hesc(this.cfg.AppTitle)+`

`) if slug == "/" { fmt.Fprint(w, "New task") } else { fmt.Fprint(w, `New task`) } fmt.Fprint(w, ` | `) if slug == "/tasks" { fmt.Fprint(w, "Current tasks") } else { fmt.Fprint(w, `Current tasks`) } } func (this *App) ServePartial_Footer(w http.ResponseWriter) { fmt.Fprint(w, ` `) }