seperate template to file