can build html with data provided literally or as file reference