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
33 title := r.URL.Path[len("/view/"):]
34 p, _ := loadPage(title)
35 fmt.Fprintf(w, "<h1>%s</h1><div>%s</div>", p.Title, p.Body)
39 title := r.URL.Path[len("/edit/"):]
40 p, err := loadPage(title)
42 p = &Page{Title: title}
49 p.Title, p.Title, p.Body)