CGI::FastTemplate

CGI::FastTemplate is a Perl extension for managing templates, and performing variable interpolation.
Download

CGI::FastTemplate Ranking & Summary

Advertisement

  • Rating:
  • License:
  • Perl Artistic License
  • Price:
  • FREE
  • Publisher Name:
  • Jason Moore
  • Publisher web site:
  • http://search.cpan.org/~jmoore/CGI-FastTemplate-1.09/FastTemplate.pm

CGI::FastTemplate Tags


CGI::FastTemplate Description

CGI::FastTemplate is a Perl extension for managing templates, and performing variable interpolation. CGI::FastTemplate is a Perl extension for managing templates, and performing variable interpolation.SYNOPSIS use CGI::FastTemplate; $tpl = new CGI::FastTemplate(); $tpl = new CGI::FastTemplate("/path/to/templates"); CGI::FastTemplate->set_root("/path/to/templates"); ## all instances will use this path $tpl->set_root("/path/to/templates"); ## this instance will use this path $tpl->define( main => "main.tpl", row => "table_row.tpl", all => "table_all.tpl", ); $tpl->assign(TITLE => "I am the title."); my faults = ( FONT => "", EMAIL => 'jmoore@sober.com', ); $tpl->assign(faults); $tpl->parse(ROWS => ".row"); ## the '.' appends to ROWS $tpl->parse(CONTENT => ); $tpl->parse(CONTENT => "main"); $tpl->print(); ## defaults to last parsed $tpl->print("CONTENT"); ## same as print() as "CONTENT" was last parsed $ref = $tpl->fetch("CONTENT");Requirements:· Perl Requirements: · Perl


CGI::FastTemplate Related Software