e1d7152000-11-24Johan Schön //! The MIME content types this class can filter.
df57a22001-01-02Johan Schön constant contenttypes = ({ });
e1d7152000-11-24Johan Schön 
300e4c2001-05-17Johan Schön class Output { // Wide strings here mapping(string:string) fields=([]); // body_normal // body_medium // body_big // title, description, keywords mapping(string:string) uri_anchors=([]); // Maps un-normalized URLs to raw text // ([ "http://www.roxen.com": "the Roxen web-server" ]) array(Standards.URI|string) links=({}); void fix_relative_links(Standards.URI base_uri) { for(int i=0; i<sizeof(links); i++)
34df362001-05-29Johan Schön  {
300e4c2001-05-17Johan Schön  links[i]=Standards.URI(links[i], base_uri);
34df362001-05-29Johan Schön  if(links[i]->fragment) links[i]->fragment=0; }
300e4c2001-05-17Johan Schön  } } Output filter(Standards.URI uri, string|Stdio.File data, string content_type);