DRYing up preparing files for presentation to the template