writeHtml with html/template