NAME

OpenInteract::Component - Central calling/caching module for components

DESCRIPTION

A Component can be called from either a 'Static' page, from a template, or from anything else in the system. from another content handler. A component is called the same either way:

 my $html = OpenInteract::Component->handler( $action, \%params )
 my $html = $R->component->handler( $action, \%params );

within a static page, you can normally simply do (using Template Toolkit):

 [% OI.comp( 'action', param = 'value', param = 'value' ) %]

where $action is a key for looking up the actual class of the handler in the Action Table that will generate the HTML returned to the original caller. (See OpenInteract::Template::Plugin for the comp subroutine which translates the template call into the necessary format for this handler.)

This class basically exists as a stub to setup/automate some items for items that are simple and do not need a whole class behind them to implement a reusable item.

TO DO

Nothing known

BUGS

None known

SEE ALSO

OpenInteract Component Guide for more information on components. (In doc/ subdirectory of main distribution.)

COPYRIGHT

Copyright (c) 2001-2002 intes.net, inc.. All rights reserved.

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

AUTHORS

Chris Winters <chris@cwinters.com>