Void writeTo(HTMLDocument doc, Void(String) output, UnicodeFormat uform=LiteralUTF8)
Arguments
doc: The HTML documentoutput: A function that outputs the strings given to it (usingPrelude::putStr@()is equivalent to write)uform: The mode for handling multibyte UTF-8 characters.LiteralUTF8will give a smaller String, readable in Unicode-aware applications.NumericReferencewill give a larger String, especially if multibyte characters are very common in the text, but will work better if the String will later be edited in non-Unicode applications. This argument is optional, and defaults to the recommendedLiteralUTF8, but you may wish to useNumericReferenceif the output is not Unicode-aware, for example.
Usage
Print a HTML document with a specified output function. This is considerably more efficient than output(string(doc));