title: The best way to get a string from a Writer
body: <p>I have a piece of code that returns a web page using the built-in template system. It accepts a <code>ResponseWriter</code> to which the resulting markup is written. I now want to get to the markup <strong>as a string</strong> and put it in a database in some cases. I factored out a method that accepts a normal <code>Writer</code> instead of a <code>ResponseWriter</code> and am now trying to get to the written content. Aha - a <code>Pipe</code> may be what I need and then I can get the string with <code>ReadString</code> from the <code>bufio</code> library. But it turns out that the <code>PipeReader</code> coming out from the pipe is not compatible with <code>Reader</code> (that I would need for the <code>ReadString</code> method). W00t. Big surprise. So I could just read into byte[]s using the <code>PipeReader</code> but it feels a bit wrong when <code>ReadString</code> is there. </p>
  
  <p>So what would be the best way to do it? Should I stick with the <code>Pipe</code> and read bytes or is there something better that I haven't found in the manual?</p>