Linux SoftwareProgrammingLibrariesCGI::FastTemplate 1.09

CGI::FastTemplate 1.09



Developer:   Jason Moore
      more software by author →
Price:  0.00
License:   Perl Artistic License
File size:   13K
Language:   
OS:   
Rating:   0 /5 (0 votes)
Your vote:  
enlarge screenshot


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 %defaults = ( FONT => "",
EMAIL => 'jmoore@sober.com',
);
$tpl->assign(%defaults);

$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");

Requirements:
  • Perl
    tags cgi fasttemplate  tpl parse  main tpl  last parsed  all tpl  tpl assign  parse content  path tpl  tpl print  this path  tpl new  fasttemplate tpl  new cgi  

    Download CGI::FastTemplate 1.09


     http://mirrors.evolva.ro/CPAN/authors/id/J/JM/JMOORE/CGI-FastTemplate-1.09.tar.gz


    Authors software

    CGI::FastTemplate 1.09 (by Jason Moore)


    Similar software

    CGI::FastTemplate 1.09 (by Jason Moore)

    Template::Tutorial 2.15 (by Andy Wardley)
    Template::Tutorial are template toolkit tutorials.

    This section includes tutorials on using the Template Toolkit

    MathML::Entities 0.13 (by Jacques Distler)
    MathML::Entities is a Perl module that can convert XHTML+MathML Named Entities to Numeric Character References.

    SYNOPSIS

    use M

    Template::Magic 1.38 (by Domizio Demichelis)

    Template::Plugin::XML::DOM 2.16 (by Andy Wardley and Simon Matthews)
    Template::Plugin::XML::DOM is a plugin interface to XML::DOM.

    SYNOPSIS

    # load plugin
    [% USE dom = XML.DOM %]

    #

    CAM::PDF::Content 1.07 (by Clotho Advanced Media Inc.)
    CAM::PDF::Content is a PDF page layout parser.

    SYNOPSIS

    use CAM::PDF;
    my $pdf = CAM::PDF->new($filename);

    m

    OpenInteract::UI::Main 1.62 (by Chris Winters)
    OpenInteract::UI::Main is the primary user interface assembly 'conductor'.

    SYNOPSIS

    my $page = OpenInteract::UI::Mai

    WWW::Poll 0.01 (by Mike Gammon)

    MP3::M3U::Parser 2.20 (by Burak G?rsoy)
    MP3::M3U::Parser is a MP3 playlist parser.

    SYNOPSIS

    use MP3::M3U::Parser;
    my $parser = MP3::M3U::Parser->new(%options);

    SmartTemplate 1.2.1 (by EndelWar)
    SmartTemplate is a Template Engine that was designed to support large scale, web based applications.

    What's so special about it?


    Other software in this category

    zlib 1.2.3 (by Jean-loup Gailly)
    zlib is designed to be a free, general-purpose, legally unencumbered, lossless data-compression library for use on virtually any comp

    libjpeg v6b (by Independent JPEG Group)
    libjpeg is a library for handling the JPEG (JFIF) image format

    OpenSSL 0.9.7c (by The OpenSSL Project Team)
    The OpenSSL Project is a collaborative effort to develop a robust, commercial-grade, full-featured, and Open Source toolkit implement

    libxml2 2.6.27 (by DV)
    Libxml2 is the XML C parser and toolkit developed for the Gnome project (but usable outside of the Gnome platform), libxml2 library i

    GNU C library 2.4 (by Andreas Jaeger)
    GNU C library (glibc) is one of the most important components of GNU Hurd and most modern Linux distributions.

    GNU C library is us

  •     search


    Featured Software

    jEdit 4.3 pre8
    jEdit is an Open Source text editor written in Java

    Opera 9.02
    Surf the Internet in a safer, faster, and easier way with Opera browser

    GNU Aspell 0.60.4
    GNU Aspell is a Free and Open Source spell checker designed to eventually replace Ispell


    Subscribe in Rojo
    Google Reader
    Add to My Yahoo!

    Add to My AOL
    Subscribe with Bloglines
    Subscribe in NewsGator Online
    Add 'nixbit linux software' to Newsburst from CNET News.com
    del.icio.us nixbit linux software


    Top tags