OpenFrame::Slot::HTML - Serve static HTML files
# as part of the SLOTS entry in OpenFrame::Config: { dispatch => 'Local', name => 'OpenFrame::Slot::HTML', config => { directory => 'htdocs/' }, },
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.
OpenFrame::Slot::HTML
OpenFrame::AbstractRequest
OpenFrame::AbstraceResponse
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".
File::MMagic
Leon Brocard <leon@fotango.com>
Copyright (C) 2001, Fotango Ltd.
This module is free software; you can redistribute it or modify it under the same terms as Perl itself.
To install OpenFrame, copy and paste the appropriate command in to your terminal.
cpanm
cpanm OpenFrame
CPAN shell
perl -MCPAN -e shell install OpenFrame
For more information on module installation, please visit the detailed CPAN module installation guide.