OpenInteract::Template::Context - Provide a custom context for templates in OpenInteract


OpenInteract documentation  | view source Contained in the OpenInteract distribution.

Index


NAME

Top

OpenInteract::Template::Context - Provide a custom context for templates in OpenInteract

SYNOPSIS

Top

    $Template::Config::CONTEXT = 'OpenInteract::Template::Context';
    my $template = Template->new( ... );
    my ( $output );
    $template->process( 'package::template', \%params, \$output );

DESCRIPTION

Top

Kind of a hack -- remove the TT check for prefixes when serving up templates since it uses '::' as a delimiter. Everything else about the TT context is the same.

METHODS

Top

template( $name )

Override the method from Template::Context and replicate its functionality, except the check for a template prefix is removed.

BUGS

Top

None known.

TO DO

Top

Nothing known.

SEE ALSO

Top

Template::Context

COPYRIGHT

Top

AUTHORS

Top

Chris Winters <chris@cwinters.com>


OpenInteract documentation  | view source Contained in the OpenInteract distribution.