OpenInteract2::Action::TemplateOnly - Base class for template-only actions
# Declare your action with the necessary action_type... [login_box] name = login_box template = base_box::login_box weight = 1 title = Login is_secure = no action_type = template_only # In code, find the action... my $action = CTX->lookup_action( 'login_box' ); # And execute as normal! my $box_content = $action->execute; # You can also instantiate the action directly my $action = CTX->lookup_action( 'template_only' ); # ...set the parameter $action->param( template => 'base_box::login_box' ); # ...and execute as normal return $action->execute;
This class implements the template_only action type. What this means is that your action declaration can specify that it is of this type and most of the work is done for you.
Copyright (c) 2002-2004 Chris Winters. All rights reserved.
Chris Winters <chris@cwinters.com>
To install OpenInteract2::URL, copy and paste the appropriate command in to your terminal.
cpanm
cpanm OpenInteract2::URL
CPAN shell
perl -MCPAN -e shell install OpenInteract2::URL
For more information on module installation, please visit the detailed CPAN module installation guide.