NAME
OpenFrame::Slot::Generator - Generate HTML using TT
SYNOPSIS
# as part of the SLOTS entry in OpenFrame::Config:
{
dispatch => 'Local',
name => 'OpenFrame::Slot::Generator',
config => { presentation => 'htdocs/' },
},
DESCRIPTION
OpenFrame::Slot::Generator
is an OpenFrame slot that can generate HTML using the Template Toolkit. It takes the path from the OpenFrame::AbstractRequest
and looks for templates starting from the value of the "presentation" configuration option. It returns an OpenFrame::AbstraceResponse
containing the generated output.
It will only serve the file has extension "html" and will pass the entire session to the template as the "session" variable.
AUTHOR
James Duncan <jduncan@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.