Generate multiple files from a template