function(doc, req) {
   start({
      "Content-type": "text/html; charset='utf-8'"
   });
   var Mustache = require("vendor/mustache");
   Mustache.to_html(this.templates.paste, doc, null, send);
}

@@ -1,12 +1,125 @@
+/*%0A * Use the mustache template in templates/paste.html to create%0A * the web page showing a single paste%0A *%0A */%0A%0A
 function
 (doc
@@ -114,16 +114,17 @@
 function
+ 
 (doc, re
@@ -128,16 +128,109 @@
  req) %7B%0A
+   if (!(doc && doc.title && doc.content))%0A      return %7B%22code%22: 404, %22body%22: %22Not found%22%7D;%0A%0A
    start
@@ -290,16 +290,17 @@
 %0A   %7D);%0A
+%0A
    var M

return 404 error if no document or not a paste