Add a html ouput functionality to template.