SYNOPSISVoid writeTo( HTMLDocument doc, Void(String) output, UnicodeFormat uform=LiteralUTF8 )
doc The HTML document
output A function that outputs the strings given to it (using Prelude::[email protected]() is equivalent to HTMLDocument.write(3kaya) )
uform The mode for handling multibyte UTF-8 characters. LiteralUTF8 will give a smaller String, readable in Unicode-aware applications. NumericReference will 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 recommended LiteralUTF8 , but you may wish to use NumericReference if the output is not Unicode-aware, for example.
Print a HTML document with a specified output function. This is considerably more efficient than output(string(doc));
AUTHORSKaya standard library by Edwin Brady, Chris Morris and others ([email protected]). For further information see http://kayalang.org/
LICENSEThe Kaya standard library is free software; you can redistribute it and/or modify it under the terms of the GNU Lesser General Public License (version 2.1 or any later version) as published by the Free Software Foundation.