Follow Techotopia on Twitter

On-line Guides
All Guides
eBook Store
iOS / Android
Linux for Beginners
Office Productivity
Linux Installation
Linux Security
Linux Utilities
Linux Virtualization
Linux Kernel
System/Network Admin
Scripting Languages
Development Tools
Web Development
GUI Toolkits/Desktop
Mail Systems
Eclipse Documentation

How To Guides
General System Admin
Linux Security
Linux Filesystems
Web Servers
Graphics & Desktop
PC Hardware
Problem Solutions
Privacy Policy




Appendix D. The Template Toolkit

This appendix provides an introduction to the Template Toolkit, a fast, flexible, powerful, and extensible template processing system written in Perl.[61] It is ideally suited for use in creating highly customized static and dynamic web pages and for building Perl-based web applications. This appendix explains how to get the best out of the Template Toolkit under mod_perl (although the Template Toolkit is in no way limited to use under mod_perl). All the example code is available for download from this book's web site (

[61]There are also some optional components written in C for speed, but you don't need to use them if you're looking for a pure Perl solution.

This appendix's goal is to give you a flavor of what the Template Toolkit can do for you and your web sites. It is by no means comprehensive, and you're strongly urged to consult the copious documentation that is bundled with the Perl modules or available for browsing online at the Template Toolkit web site:

D.1. Fetching and Installing the Template Toolkit

You can fetch the Template Toolkit from any CPAN site. It can be found at the following URL:

Once you've unzipped and untarred the distribution, installation proceeds via the usual route. For example:

panic% perl Makefile.PL
panic% make
panic% make test
panic% su
panic# make install

Alternately, you can use the module to install it. Full details on installation can be found in the INSTALL file in the distribution directory. There is also a README file that is worth at least a passing glance.

Copyright © 2003 O'Reilly & Associates. All rights reserved.

  Published courtesy of O'Reilly Design by Interspire