CGI::Application::Plugin::HTDot

Enable "magic dot" notation in CGI::Application-derived applications that use HTML::Template for their templating mechanism.
Download

CGI::Application::Plugin::HTDot Ranking & Summary

Advertisement

  • Rating:
  • License:
  • Perl Artistic License
  • Price:
  • FREE
  • Publisher Name:
  • Jason A. Crome
  • Publisher web site:
  • http://search.cpan.org/~cromedome/

CGI::Application::Plugin::HTDot Tags


CGI::Application::Plugin::HTDot Description

Enable "magic dot" notation in CGI::Application-derived applications that use HTML::Template for their templating mechanism. CGI::Application::Plugin::HTDot is a Perl module to enable "magic dot" notation in CGI::Application-derived applications that use HTML::Template for their templating mechanism.SYNOPSIS # In your CGI::Application-derived base class. . . use base ("CGI::Application::Plugin::HTDot", "CGI::Application"); # Later, in a run mode far, far away. . . sub view { my $self = shift; my $username = $self->query->param( 'user' ); my $user = My::Users->retrieve( $username ); my $tmpl_view = $self->load_tmpl( 'view_user.tmpl' ); # The magic happens here! Pass our Class::DBI object # to the template and display it $tmpl_view->param( user => $user ); return $tmpl_view->output; } Requirements: · Perl


CGI::Application::Plugin::HTDot Related Software