Monday, November 08, 2010 at 12:04 AM.
system.verbs.builtins.mainResponder.adminSite.html.errorPage
on errorPage (title, body) {
local (htext = "", indentlevel = 0);
on add (s) {
htext = htext + (string.filledString ("\t", indentlevel) + s + "\r\n")};
add ("<!DOCTYPE HTML PUBLIC \"-//W3C//DTD HTML 4.01 Transitional//EN\">");
add ("<html>"); indentlevel++;
add ("<head><title>" + title + "</title></head>");
add ("<body bgcolor=\"white\" text=\"black\" link=\"blue\" vlink=\"purple\" alink=\"red\">"); indentlevel++;
add ("<h2>" + title + "</h2>");
add (body);
add ("</body>"); indentlevel--;
add ("</html>"); indentlevel--;
return (htext)}
This listing is for code that runs in the OPML Editor environment. I created these listings because I wanted the search engines to index it, so that when I want to look up something in my codebase I don't have to use the much slower search functionality in my object database. Dave Winer.