CGI-Application-Plugin-HTCompiled
view release on metacpan or search on metacpan
return $self->SUPER::load_tmpl($tmpl_file, @extra_params);
}
FUNCTIONS
This is documentation of how it is done internally. If you actually are
looking for how to use this module, see SYNOPSIS. There isn't anything
else to do than using this plugin.
import()
Will be called when your Module uses HTML::Template::Compiled. Registers
callbacks at the "init" and the "load_tmpl" stages. This is how the
plugin mechanism works.
_pass_in_self()
Adds the parameter c each template that will be processed. See DEFAULT
PARAMETERS for more information.
_add_init()
Set html_tmpl_class to HTML::Template::Compiled at the init stage. That
way, each time a template is loaded using load_tmpl, an instance of
HTML::Template::Compiled will be created instead of the defualt
lib/CGI/Application/Plugin/HTCompiled.pm view on Meta::CPAN
=head1 FUNCTIONS
This is documentation of how it is done internally. If you actually are looking
for how to use this module, see SYNOPSIS. There isn't anything else to do than
using this plugin.
=head2 import()
Will be called when your Module uses L<HTML::Template::Compiled>. Registers
callbacks at the C<init> and the C<load_tmpl> stages. This is how the plugin
mechanism works.
=cut
sub import {
my $caller = scalar( caller );
# -- determine if the module has been used as base class or as plugin.
return unless $caller->isa('CGI::Application');
( run in 0.474 second using v1.01-cache-2.11-cpan-9b1e4054eb1 )