load template from text file