The Perl Toolchain Summit needs more sponsors. If your company depends on Perl, please support this very important event.

NAME

OpenInteract2::TT2::Context - Provide a custom context for templates in OpenInteract

SYNOPSIS

    # In OpenInteract2::ContentGenerator::TT2Process->initialize()

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

DESCRIPTION

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

template( $name )

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

BUGS

None known.

TO DO

Nothing known.

SEE ALSO

Template::Context

COPYRIGHT

Copyright (c) 2001-2004 Chris Winters. 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>