split templates out to html files