function(doc, req) {
   start({
      "headers" : {
          "Content-type": "text/html"
      }
   });
   var Mustache = require("vendor/mustache");
   var x = Mustache.to_html(this.templates.paste, doc);
   return x;
}

@@ -29,32 +29,8 @@
 t(%7B%0A
-      %22headers%22 : %7B%0A    
     
@@ -61,17 +61,26 @@
 html
-%22%0A      %7D
+; charset='utf-8'%22
 %0A   
@@ -135,16 +135,8 @@
 ;%0A  
- var x =
  Mus
@@ -178,22 +178,21 @@
  doc
-);%0A   return x
+, null, send)
 ;%0A%7D%0A

Use CouchDB send function when displaying the template