Split html and tpl compilation