merge htmltemplate