Perl Template Toolkit and over 2 million other books are available for Amazon Kindle . Learn more

Sign in to turn on 1-Click ordering.
More Buying Choices
Have one to sell? Sell yours here
Sorry, this item is not available in
Image not available for
Image not available

Start reading Perl Template Toolkit on your Kindle in under a minute.

Don't have a Kindle? Get your Kindle here, or download a FREE Kindle Reading App.

Perl Template Toolkit [Paperback]

Darren Chamberlain , Dave Cross , Andy Wardley
5.0 out of 5 stars  See all reviews (1 customer review)
RRP: 25.99
Price: 25.18 & FREE Delivery in the UK. Details
You Save: 0.81 (3%)
o o o o o o o o o o o o o o o o o o o o o o o o o o o o o o o o o o o o o o o o o o o o o o o o o o o o o o o o o o o o o o o o
Only 1 left in stock (more on the way).
Dispatched from and sold by Amazon. Gift-wrap available.
Want it tomorrow, 21 Aug.? Choose Express delivery at checkout. Details


Amazon Price New from Used from
Kindle Edition 20.08  
Paperback 25.18  

Book Description

2 Jan 2004

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.

Product details

  • Paperback: 592 pages
  • Publisher: O'Reilly Media; 1 edition (2 Jan 2004)
  • Language: English
  • ISBN-10: 0596004761
  • ISBN-13: 978-0596004767
  • Product Dimensions: 3.2 x 17.6 x 22.4 cm
  • Average Customer Review: 5.0 out of 5 stars  See all reviews (1 customer review)
  • Amazon Bestsellers Rank: 923,697 in Books (See Top 100 in Books)
  • See Complete Table of Contents

More About the Authors

Discover books, learn about writers, and more.

Product Description


"I highly recommend this book." -- CVu, October – Jon Wilks

If .. you care passionately about dynamic content creation and management, then this is definitely the book for you. -- PC Plus, Nov 2004 (rating 8/10) - Davey Winder

About the Author

Darren Chamberlain is an active member of the Template Toolkit development team.

David Cross is the owner of Magnum Solutions Ltd., a London-based Perl Consultancy, and is also the author of the well-respected Data Munging with Perl.

Andy Wardley is the author of several CPAN modules including the Template Toolkit. He is a software researcher at the Canon Research Centre Europe and specializes in web-related technologies including dynamic content generation, web application frameworks, and the customization and localization of user interfaces and web content.

Inside This Book (Learn More)
Browse Sample Pages
Front Cover | Copyright | Table of Contents | Excerpt | Index | Back Cover
Search inside this book:

What Other Items Do Customers Buy After Viewing This Item?

Customer Reviews

4 star
3 star
2 star
1 star
5.0 out of 5 stars
5.0 out of 5 stars
Most Helpful Customer Reviews
11 of 11 people found the following review helpful
5.0 out of 5 stars Another classic O'Reilly title 23 Jan 2004
Some of the information in this book will be familiar if you have already used the Template Toolkit and have read all the (many) manual pages. However the book is much more than just a reworking of the standard documentation; it is extremely well written and structured, includes a lot of detailed information, and also contains some inspired insights into how to get the most out of the Template Toolkit. I read the book at a single sitting and am just itching to start to apply the lessons learned to the websites I manage.
Comment | 
Was this review helpful to you?
Most Helpful Customer Reviews on (beta) 4.3 out of 5 stars  6 reviews
16 of 16 people found the following review helpful
4.0 out of 5 stars good book for several audiences 25 Jan 2004
By Alan Mead - Published on
I picked up this book because I want to use a templateing system to produce web pages and I grok Perl pretty well. This book seems designed for at least two audiences, people who want to create something like a website using the TT and people who want to hack/extend the template toolkit.
The book is a very gentle and seemingly thorough introduction and explanation. The authors write with clarity and humor. I must admit that the authors write with such thoroughness and gentleness that I sometimes grew impatient. One addition I would have liked is more examples. Chapter 2 carefully explains a complete, but very simple example and Chapters 11 and 12 contain much richer examples. However, I find that I never learn unless I *do* and for such a long book, I was surprised that there wasn't more directly about the application of the TT.
You can use this book and the toolkit without knowing any Perl. The authors explain things well and clearly. However, you will get maximum value from the TT (and grok the syntax most quickly) if you know some Perl. The material on filters and plugins (there is a chapter on each, parts of another chapter about writing your own, plus entire chapters dealing with DBI and XML plugins... it's a good chunk of the book) is wonderfully detailed and probably justifies the book.
I skimmed most of the material on hacking and extending the toolkit. It seemed pretty thorough, even explaining how to alter or replace the TT syntax (right down to a quick tutorial on Yapp/yacc). I learned a lot from the little bit I read. I suspect this would be very helpful to Perl hackers and others as an example.
A note about the toolkit itself. It's very powerful. In many ways, it's like Perl itself (e.g., it has a Perl-like syntax). It has exceptions but scoping seems weak and there appears not to be anything like 'use strict'.
In summary, this is a good book for a variety of audiences. It is very well written and you should leave it's pages with enough know-how to use it for something like web page generation. I learned a lot about Perl and available CPAN modules (in addition to learning a lot about the TT). But I wish there was more direct practical application as examples, exercises, recipes, etc.
1 of 1 people found the following review helpful
4.0 out of 5 stars A very powerful and verstile tool 30 Mar 2007
By Craig Frooninckx - Published on
Format:Paperback|Verified Purchase
I used this book on a couple of projects and was very impressed with how helpful it was. A suggest that I would like to see in this already large book is more examples of a full project. Each chapter addresses a part of the tool and the final chapter brings it all together, I would like to see another chapter for an example.
5.0 out of 5 stars Writing an extension to the Bugzilla GUI? Get this book. 9 April 2014
By euphxenos - Published on
Format:Paperback|Verified Purchase
I needed more information on template toolkit because I was writing a Bugzilla extension that needed to hook into Bugzilla's gui, which is written using template toolkit. I found the online template toolkit documentation to be a complete waste of time, but this book was a much better resource. Did I read it cover to cover so I can provide a complete review? No -- I flipped through it, found what I needed, and finished quickly, which is what I'm looking for in this sort of documentation.
5.0 out of 5 stars Perl web pages 5 Mar 2014
By Paul Newhouse - Published on
Format:Paperback|Verified Purchase
Pretty good reference manual for TT. Many pages are dog eared. Glad I purchased it. Don't need it much anymore.
5.0 out of 5 stars Very nice book 19 Dec 2013
By Jagatpran Amartya - Published on
Format:Kindle Edition
Its a very useful book. I will recommend this book to anyone who wants to learn application development in perl on the front-end.
Were these reviews helpful?   Let us know
Search Customer Reviews
Only search this product's reviews

Customer Discussions

This product's forum
Discussion Replies Latest Post
No discussions yet

Ask questions, Share opinions, Gain insight
Start a new discussion
First post:
Prompts for sign-in

Search Customer Discussions
Search all Amazon discussions

Look for similar items by category