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


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.


Nothing known


None known


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


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

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


Chris Winters <>