Reading template from file