Softpedia
 


LINUX CATEGORIES:



GLOBAL PAGES >>
NEWS ARCHIVE >>
SOFTPEDIA REVIEWS >>
MEET THE EDITORS >>
WEEK'S BEST
  • Linux Kernel 3.9.3 / 3....
  • LibreOffice 3.6.6 / 4.0.3
  • MPlayer 1.1.1
  • systemd 204
  • Arch Linux 2013.05.01
  • Blender 2.67
  • KDE Software Compilatio...
  • CrunchBang Linux Stable...
  • Elementary OS 0.1 / 0.2...
  • SystemRescueCd 3.6.0
  • Home > Linux > Programming > Perl Modules

    CGI::FastTemplate 1.09

    Download button

    No screenshots available
    Downloads: 416  View global page NEW!  Tell us about an update
    User Rating:
    Rated by:
    NOT RATED
    0 user(s)
    Developer:

    License / Price:

    Last Updated:

    Category:
    Jason Moore | More programs
    Perl Artistic License / FREE
    August 1st, 2006, 11:05 GMT
    ROOT / Programming / Perl Modules

     Read user reviews (0)  Refer to a friend  Subscribe

    CGI::FastTemplate description

    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 => ["row", "all"]);
    $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");



    Product's homepage

    Requirements:

    · Perl

      


    TAGS:

    Perl extension | managing templates | variable interpolation | interpolation | Perl | extension

    Go to top

    WindowsGamesDriversMacLinuxScriptsMobileHandheldNews

    SUBMIT PROGRAM   |   ADVERTISE   |   GET HELP   |   SEND US FEEDBACK   |   RSS FEEDS   |   UPDATE YOUR SOFTWARE   |   ROMANIAN FORUM