70
edits
Changes
→Writing your output as and where you wish
The Html class adds a new method, write() which is to be used when you are ready to output your finished page. If called with no parameters, it simply prints the contents of the page on your terminal. If called with an argument, that argument must be the name of a function that is to receive the data to be output. For example:
Building standard DOCTYPE and XML declarations:
page = Html(xmlns=html._XMLNS)
=== The Html.page function ===