Buying Options
Perl Template Toolkit
Print $39.95
Add to Cart
Safari Books Online
Add to Cart
What is this?
Print £30.50
Add to Cart
What is this?
Description
Written by core members of the technology's development team, Perl Template Toolkit 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.
Full Description
Table of Contents
  1. Chapter 1 Getting Started with the Template Toolkit

    1. What the Template Toolkit Does

    2. The Templating Ecosystem

    3. Installing the Template Toolkit

    4. Documentation and Support

    5. Using the Template Toolkit

    6. The Template Toolkit Language

    7. Template Variables

    8. Template Directives

    9. Integrating and Extending the Template Toolkit

  2. Chapter 2 Building a Complete Web Site Using the Template Toolkit

    1. Getting Started

    2. Template Components

    3. Defining Variables

    4. Generating Many Pages

    5. Adding Headers and Footers Automatically

    6. More Template Components

    7. Wrapper and Layout Templates

    8. Menu Components

    9. Defining and Using Complex Data

    10. Assessment

  3. Chapter 3 The Template Language

    1. Template Syntax

    2. Template Variables

    3. Virtual Methods

  4. Chapter 4 Template Directives

    1. Accessing Variables

    2. Accessing External Templates and Files

    3. Defining Local Template Blocks

    4. Loops

    5. Conditionals

    6. Filters

    7. Plugins

    8. Macros

    9. Template Metadata

    10. Exception Handling

    11. Flow Control

    12. Debugging

    13. Perl Blocks

  5. Chapter 5 Filters

    1. Using Filters

    2. Standard Template Toolkit Filters

  6. Chapter 6 Plugins

    1. Using Plugins

    2. Standard Template Toolkit Plugins

  7. Chapter 7 Anatomy of the Template Toolkit

    1. Template Modules

    2. The Runtime Engine

    3. Module Interfaces

  8. Chapter 8 Extending the Template Toolkit

    1. Using and Implementing Noncore Components

    2. Creating Filters

    3. Creating Plugins

    4. Building a New Frontend

    5. Changing the Language

  9. Chapter 9 Accessing Databases

    1. Using the DBI Plugin

    2. Using Class::DBI

    3. Using DBIx::Table2Hash

  10. Chapter 10 XML

    1. Simple XML Processsing

    2. Creating XML Documents

    3. Processing RSS Files with XML.RSS

    4. Processing XML Documents with XML.DOM

    5. Processing XML Documents with XML.XPath

    6. Processing XML Documents with XML.LibXML

    7. Using Views to Transform XML Content

  11. Chapter 11 Advanced Static Web Page Techniques

    1. Getting Started

    2. Library Templates

    3. Content Templates

    4. Navigation Components

    5. Structuring Page Content

    6. Creating a New Skin

  12. Chapter 12 Dynamic Web Content and Web Applications

    1. CGI Scripts

    2. CGI Templates

    3. Apache and mod_perl

    4. A Complete Web Application

  1. Appendix A Appendix: Configuration Options

    1. Template Toolkit Configuration Options

    2. Apache::Template Configuration Options

  2. Colophon

View Full Table of Contents
Product Details
Title:
Perl Template Toolkit
By:
Darren Chamberlain, Dave Cross, Andy Wardley
Publisher:
O'Reilly Media
Formats:
  • Print
  • Safari Books Online
Print Release:
December 2003
Pages:
592
Print ISBN:
978-0-596-00476-7
| ISBN 10:
0-596-00476-1
Customer Reviews
About the Authors
  1. Darren Chamberlain

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

    View Darren Chamberlain's full profile page.

  2. Dave Cross

    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.

    View Dave Cross's full profile page.

  3. Andy Wardley

    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.

    View Andy Wardley's full profile page.

Colophon

Our look is the result of reader comments, our own experimentation, and feedback from distribution channels. Distinctive covers complement our distinctive approach to technical topics, breathing personality and life into potentially dry subjects. The animal on the cover of Perl Template Toolkit is a badger. The badger (Meles meles) is the largest member of the weasel family, and is found extensively throughout the northern hemisphere. Badgers are the best diggers of all carnivores, and can be found in the sandy or clay soils of dry open fields, parklands, and pastures where there are few large tree roots in their way as they digs.

Badgers are completely covered in gray or black fur except for on the head, where white stripes (or badges) run from the nose to the shoulders. Adult males can weigh as much as 26 pounds in autumn as, to prepare for winter, badgers tend to consume large amounts of food. Although they do not hibernate, badgers sleep in their burrows during winter and live off of their body fat.

The bones and muscles are large for an animal of the badger's size. The forefeet are armed with long, wide claws for digging. The claws on the hind legs are short and shovel-like for scooping away dirt. The flattened body easily slips into small burrows. A badger can dig itself into a hole in a few minutes.

Badgers are nocturnal, foraging for food at night. They eat everything from earthworms, insects, fruits, and berries to squirrels, mice, rabbits, and snakes. If attacked by a person or coyote--its main enemies--the badger acts quickly. The badger digs itself into a hole, throwing dirt and dust into its attacker's face. The badger turns with its powerful claws and terrible bite to face its enemy. The badger then starts to fill the hole in front of it with loose dirt to hide itself. Coyotes usually leave to find less dangerous prey. Few other animals will attack a badger.

Often hunted for their pelts, many countries now have laws protecting badgers. Badgers have been known to live for up to 14 years in the wild, but are likely to die or be killed before they reach this age. Darren Kelly was the production editor, Audrey Doyle was the copyeditor, and Mary Brady was the proofreader for Perl Template Toolkit. Mary Anne Weeks Mayo and Colleen Gorman provided quality control. Tom Dinse wrote the index. Jamie Peppard, Matt Hutchinson, and Mary Agner provided production assistance.

Emma Colby designed the cover of this book, based on a series design by Edie Freedman. The cover image is an original engraving from the 19th century. Emma produced the cover layout with QuarkXPress 4.1using Adobe's ITC Garamond font.

David Futato designed the interior layout. This book was converted by Joe Wizda to FrameMaker 5.5.6 with a format conversion tool created by Erik Ray, Jason McIntosh, Neil Walls, and Mike Sierra that uses Perl and XML technologies. The text font is Linotype Birka; the heading font is Adobe Myriad Condensed; and the code font is LucasFont's TheSans Mono Condensed. The illustrations that appear in the book were produced by Robert Romano and Jessamyn Read using Macromedia FreeHand 9 and Adobe Photoshop 6. The tip and warning icons were drawn by Christopher Bing. This colophon was written by Darren Kelly.

  • Book cover of Perl Template Toolkit