The Perl Toolchain Summit needs more sponsors. If your company depends on Perl, please support this very important event.

NAME

OpenFrame::Slot::HTML - Serve static HTML files

SYNOPSIS

  # as part of the SLOTS entry in OpenFrame::Config:
  {
  dispatch => 'Local',
  name     => 'OpenFrame::Slot::HTML',
  config   => { directory => 'htdocs/' },
  },

DESCRIPTION

OpenFrame::Slot::HTML is an OpenFrame slot that can handle static HTML files. It takes the path from the OpenFrame::AbstractRequest and looks for HTML files starting from the value of the "directory" configuration option. It returns an OpenFrame::AbstraceResponse containing the HTML file.

It defaults to "index.html" if the path is a directory.

It will only serve the file if File::MMagic reckons the file has MIME type "text/html".

AUTHOR

Leon Brocard <leon@fotango.com>

COPYRIGHT

Copyright (C) 2001, Fotango Ltd.

This module is free software; you can redistribute it or modify it under the same terms as Perl itself.