HttpResponseEx.pageTemplate

The default page template, used for writePage and error pages.

class HttpResponseEx
static
auto pageTemplate = `<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"> <html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en"> <head> <title><?title?></title> <meta http-equiv="Content-Type" content="text/html; charset=utf-8"/> <style type="text/css"> body { padding: 0; margin: 0; border-width: 0; font-family: Tahoma, sans-serif; } </style> </head> <body> <div style="background-color: #FFBFBF; width: 100%; height: 75px;"> <div style="position: relative; left: 150px; width: 300px; color: black; font-weight: bold; font-size: 30px;"> <span style="color: #FF0000; font-size: 65px;">D</span>HTTP </div> </div> <div style="background-color: #FFC7C7; width: 100%; height: 4px;"></div> <div style="background-color: #FFCFCF; width: 100%; height: 4px;"></div> <div style="background-color: #FFD7D7; width: 100%; height: 4px;"></div> <div style="background-color: #FFDFDF; width: 100%; height: 4px;"></div> <div style="background-color: #FFE7E7; width: 100%; height: 4px;"></div> <div style="background-color: #FFEFEF; width: 100%; height: 4px;"></div> <div style="background-color: #FFF7F7; width: 100%; height: 4px;"></div> <div style="position: relative; top: 40px; left: 10%; width: 80%;"> <?content?> </div> </body> </html>`;

Meta