server: render file contents with the base template before writing it back out to the user