added RenderTemplate method to ResponseWriter