CGI-Application-Plugin-HTDot

 view release on metacpan or  search on metacpan

README  view on Meta::CPAN

      sub load_tmpl {
          my ($self, $tmpl_file, @extra_params) = @_;

          push @extra_params, "die_on_bad_params", "0";
          push @extra_params, "cache",             "1";

          return $self->SUPER::load_tmpl($tmpl_file, @extra_params);
      }

    This plugin honors the "load_tmpl()" callback. Any "load_tmpl()"-based
    callbacks you have created will be executed as intended:

DEFAULT PARAMETERS
    By default, this plugin will automatically add a parameter 'c' to your
    template that will return your CGI::Application object. This will allow
    you to access any methods in your application from within your template.
    This allows for some powerful actions in your templates. For example,
    your templates can access query parameters, or if you use the excellent
    CGI::Application::Plugin::Session module, you can access session
    parameters:

lib/CGI/Application/Plugin/HTDot.pm  view on Meta::CPAN

  sub load_tmpl {
      my ($self, $tmpl_file, @extra_params) = @_;

      push @extra_params, "die_on_bad_params", "0";
      push @extra_params, "cache",             "1";

      return $self->SUPER::load_tmpl($tmpl_file, @extra_params);
  }

This plugin honors the C<load_tmpl()> callback.  Any C<load_tmpl()>-based
callbacks you have created will be executed as intended:

=head1 DEFAULT PARAMETERS

By default, this plugin will automatically add a parameter 'c' to your
template that will return your L<CGI::Application> object.  This will allow
you to access any methods in your application from within your template.
This allows for some powerful actions in your templates.  For example, your
templates can access query parameters, or if you use the excellent
L<CGI::Application::Plugin::Session> module, you can access session parameters:



( run in 2.738 seconds using v1.01-cache-2.11-cpan-9b1e4054eb1 )