| 1 | package OpenInteract2::Action::TemplateOnly; | ||
| 2 | |||
| 3 | # $Id: TemplateOnly.pm,v 1.7 2005/03/17 14:57:59 sjn Exp $ | ||
| 4 | |||
| 5 | use strict; | ||
| 6 | use base qw( OpenInteract2::Action ); | ||
| 7 | |||
| 8 | $OpenInteract2::Action::TemplateOnly::VERSION = sprintf("%d.%02d", q$Revision: 1.7 $ =~ /(\d+)\.(\d+)/); | ||
| 9 | |||
| 10 | sub _find_task { | ||
| 11 | return 'execute_template'; | ||
| 12 | } | ||
| 13 | |||
| 14 | sub execute_template { | ||
| 15 | my ( $self ) = @_; | ||
| 16 | my $template = $self->param( 'template' ); | ||
| 17 | return $self->generate_content( {}, { name => $template } ); | ||
| 18 | } | ||
| 19 | |||
| 20 | 1; | ||
| 21 | |||
| 22 | __END__ |