factor per-mime-type templates into separate files for viewer