public static void WriteHtml(this ResponseContext response, string text) { const string header = @"<!DOCTYPE html><html>"; const string footer = @"</html>"; response.SetHtmlContentType(); response.Write(header, text, footer); }