package tbserve import ( "io/ioutil" "net/http" "path/filepath" "strings" ) func (m *Client) Page() (string, error) { htmlbytes := htmlhead htmlbytes = append(htmlbytes, []byte(`
`)...) htmlbytes = append(htmlbytes, []byte(` `)...) mdbytes := m.PageHTML() htmlbytes = append(htmlbytes, mdbytes...) if alive, ours := m.TBS.TorIsAlive(); alive { htmlbytes = append(htmlbytes, m.TorOnStatusHTML(ours)...) } else { htmlbytes = append(htmlbytes, m.TorOffStatusHTML(ours)...) } htmlbytes = append(htmlbytes, []byte(`