Lines Matching refs:title
14 Title string
19 filename := p.Title + ".txt"
23 func loadPage(title string) (*Page, error) {
24 filename := title + ".txt"
29 return &Page{Title: title, Body: body}, nil
38 title := r.URL.Path[len("/view/"):]
39 p, err := loadPage(title)
41 http.Redirect(w, r, "/edit/"+title, http.StatusFound)
48 title := r.URL.Path[len("/edit/"):]
49 p, err := loadPage(title)
51 p = &Page{Title: title}
57 title := r.URL.Path[len("/save/"):]
59 p := &Page{Title: title, Body: []byte(body)}
65 http.Redirect(w, r, "/view/"+title, http.StatusFound)