Generates text files from templates.