web mode for html with tpl hook