Perl Template Toolkit

November 12, 2005 – 6:23 pm

The Template Toolkit is a fast, powerful and easily extensible template processing system written in Perl with certain key elements coded in C for maximum speed. It is ideally suited (but not limited) to the creation of static and dynamic web content, and incorporates various modules and tools to simplify this process. The Toolkit is highly portable, with minimal dependencies or restrictions on how and where it can be used. It is robust, reliable, well documented and freely available as Open Source.

Features

    Fast, powerful and extensible template processing system.
    Powerful presentation language supports all standard templating directives, e.g. variable substitution, includes, conditionals, loops.
    Many additional features such as output filtering, exception handling, macro definition, support for plugin objects, definition of template metadata, embedded Perl code (only enabled by EVAL_PERL option), definition of template blocks, a ’switch’ statement, and more.

    Full support for complex Perl data types such as hashes, lists, objects and sub-routine references.
    Clear separation of concerns between user interface (templates), application code (Perl objects/sub-routines) and data (Perl data).
    Programmer-centric back end, allowing application logic and data structures to be built in Perl.
    Designer-centric front end, hiding underlying complexity behind simple variable access.
    Templates are compiled to Perl code for maximum runtime efficiency and performance. Compiled templates are cached and can be written to disk in “compiled form” (e.g. Perl code) to achieve cache persistance.
    Well suited to online dynamic web content generation (e.g. pache/mod_perl).
    Also has excellent support for offline batch processing for generating static pages (e.g. HTML, POD, LaTeX, PostScript, plain text) from source templates.
    Comprehensive documentation including tutorial and reference manuals.
    Fully Open Source and Free

  1. 2 Responses to “Perl Template Toolkit”

  2. Ok! that’s just a overview about Perl template toolkit. where can i find resource site for it? Is it the best Template sysem for a CGI based system?

    By Anil on Nov 12, 2005

  3. Sure Anil!
    check these sites for more info on Perl Template Toolkit:
    Template Toolkit Resource Site
    Also check out Cspan website.
    For CGI-based website a template system called FastCGI gives the best performance.
    Hope I answered ur query!
    Cheer,
    CHerry.

    By Administrator on Nov 14, 2005

Post a Comment