done collects the entire contents created so far using output functions (such as out) and creates a WebResult object that can be returned from the run function
done(..., cmd ="html", type ="text/html; charset=utf-8")
Arguments
...: additional entries to appent to the output (or the actual content depending on the command)
cmd: interface command
type: content type
Returns
Returns a WebResult object that can be returned from the run function.
Details
Some objects can override the default command and type value. For example, if the document consits solely of a plot then the content type is taken from the plot and command changed to "tmpfile".