separate templates from html file