Perl Template Toolkit
Scalable Templating for the Web
Publisher: O'Reilly Media
Final Release Date: December 2003
Pages: 592

Among the many different approaches to "templating" with Perl--such as Embperl, Mason, HTML::Template, and hundreds of other lesser known systems--the Template Toolkit is widely recognized as one of the most versatile. Like other templating systems, the Template Toolkit allows programmers to embed Perl code and custom macros into HTML documents in order to create customized documents on the fly. But unlike the others, the Template Toolkit is as facile at producing HTML as it is at producing XML, PDF, or any other output format. And because it has its own simple templating language, templates can be written and edited by people who don't know Perl. In short, the Template Toolkit combines the best features of its competitors, with ease-of-use and flexibility, resulting in a technology that's fast, powerful and extensible, and ideally suited to the production and maintenance of web content and other dynamic document systems.In Perl Template Toolkit you'll find detailed coverage of this increasingly popular technology. Written by core members of the technology's development team, the book guides you through the entire process of installing, configuring, using, and extending the Template Toolkit. It begins with a fast-paced but thorough tutorial on building web content with the Template Toolkit, and then walks you through generating and using data files, particularly with XML. It also provides detailed information on the Template Toolkit's modules, libraries, and tools in addition to a complete reference manual.Topics in the book include:

  • Getting started with the template toolkit
  • The Template language
  • Template directives
  • Filters
  • Plugins
  • Extending the Template Toolkit
  • Accessing databases
  • XML
  • Advanced static web page techniques
  • Dynamic web content and web applications
The only book to cover this important tool, Perl Template Toolkit is essential reading for any Perl programmer who wants to create dynamic web content that is remarkably easy to maintain. This book is your surefire guide to implementing this fast, flexible, and powerful templating system.
Table of Contents
Product Details
About the Author
Recommended for You
Customer Reviews


by PowerReviews
oreillyPerl Template Toolkit

(based on 1 review)

Ratings Distribution

  • 5 Stars



  • 4 Stars



  • 3 Stars



  • 2 Stars



  • 1 Stars



Reviewed by 1 customer

Displaying review 1

Back to top

(5 of 10 customers found this review helpful)


A definitive book with limits that affect less prepared readers

By Anonymous

from Undisclosed

Comments about oreilly Perl Template Toolkit:

The Template Toolkit is a mini-language for filling in templates with data.

The most obvious use for this toolkit is generating html pages from a database.

A vigorous introduction to the language, that may clarify your decision to commit to Template::Toolkit is Randal Schwartz's "Building a Static Site with Template Toolkit" in March 2006 Linux Magazine and on the corresponding web site.

This book's strength and weakness is it is definitive and tightly limited to the Template Toolkit mini-language itself.

Starting after Chapter 3, the reader needs to understand the object syntax for Perl. A book like "Learning Perl" does not provide enough background to decypher the later chapters of Perl Template Toolkit.

This mini-language, intially authored by Andy Wardley has an elegant and disciplined separation of data from the presentation framework. When the reader seeks to create pages purely from a row of input data the Template language runs out.

I resorted writing a page stub generator that worked, and it is on the Template Toolkit mailing list. Any real progrmmer that looks at my hack will cringe and say... "that is pretty ugly, even for Perl"

Displaying review 1

Back to top

Buy 2 Get 1 Free Free Shipping Guarantee
Buying Options
Immediate Access - Go Digital what's this?
Ebook:  $31.99
Formats:  DAISY, ePub, Mobi, PDF
Print & Ebook:  $43.99
Print:  $39.99