OpenInteract2::TT2::Context - Provide a custom context for templates in OpenInteract
# In OpenInteract2::ContentGenerator::TT2Process->initialize() $Template::Config::CONTEXT = 'OpenInteract2::TT2::Context'; my $template = Template->new( ... ); my ( $output ); $template->process( 'package::template', \%params, \$output );
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.
template( $name )
Override the method from Template::Context and replicate its functionality, except the check for a template prefix is removed.
None known.
Nothing known.
Template::Context
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.
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.