CGI::Builder::HTMLtmpl

CGI::Builder::HTMLtmpl is a Perl module for CGI::Builder and HTML::Template integration.
Download

CGI::Builder::HTMLtmpl Ranking & Summary

Advertisement

  • Rating:
  • License:
  • Perl Artistic License
  • Price:
  • FREE
  • Publisher Name:
  • Domizio Demichelis
  • Publisher web site:
  • http://search.cpan.org/~domizio/CGI-Application-Plus-1.21/lib/CGI/Application/CheckRM.pm

CGI::Builder::HTMLtmpl Tags


CGI::Builder::HTMLtmpl Description

CGI::Builder::HTMLtmpl is a Perl module for CGI::Builder and HTML::Template integration. CGI::Builder::HTMLtmpl is a Perl module for CGI::Builder and HTML::Template integration.SYNOPSIS use CGI::Builder qw| CGI::Builder::HTMLtmpl ... |;Note: You should know CGI::Builder.This module transparently integrates CGI::Builder and HTML::Template in a very handy and flexible framework that can save you some coding. It provides you a mostly automatic template system based on HTML::Template: usually you will have just to supply the run time values to the object and this extension will manage automatically all the other tasks of the page production process (such as generating the output and setting the page_content property).Note: With this extension you don't need to explicitly set the page_content to the output of your template object (ht->output()) in your Page Handlers, because it will be automatically set. You should explicitly set the page_content property just in case you want to bypass the template system: # in order to produce the output with the template 'myPage.tmpl', # usually you just need to pass the param to the object sub PH_myPage { my $s = shift; $s->ht_param( something => 'something' ); } # but if you want to completely bypass the template system # just set the page_content sub PH_myPage { my $s = shift; $s->page_content = 'some content'; }Note: This extension is not as magic and memory saving as the CGI::Builder::Magic template extension, because HTML::Template requires a specific input data structure (i.e. does not allow call back subs unless you use the HTML::Template::Expr), and does not allow to print the output during the process. On the other hand it should be a few milliseconds faster than CGI::Builder::Magic in producing the output. Requirements: · Perl · CGI::Builder >= 1.0 · HTML::Template >= 2.6


CGI::Builder::HTMLtmpl Related Software