Bring back print statement part 2

This commit is contained in:
Eliot Whalan 2016-06-23 20:15:13 +10:00
parent c4cd7911ba
commit d0f5ffda69
No known key found for this signature in database
GPG Key ID: C0A42175139840D6
2 changed files with 3 additions and 3 deletions

View File

@ -31,7 +31,7 @@
</div>
<div class="well" style="padding-top: 10px;">
{{printf "%s".Body}}
{{printf "%s" .Body}}
</div>
<div class="pull-right">

View File

@ -39,7 +39,7 @@ type Response struct {
type Page struct {
Title string
Body string
Body []byte
Link string
}
@ -231,7 +231,7 @@ func pasteHandler(w http.ResponseWriter, r *http.Request) {
link := ADDRESS + "/raw/" + paste
p := &Page{
Title: paste,
Body: s,
Body: []byte(s),
Link: link,
}
t, err := template.ParseFiles("assets/paste.html")