Allow file(like) objects to be passed to templater.