why do we have to append the rendered template to the html (which is an empty string)?