Parse text file template