Abstract out single file rendering