add support for file output in the html macro