I needed a mutable object of some sort so that the plugin could change/manipulate the output before it was written to the file. It allows for one last bit of post-processing on the html.