-
Chapter 1 Getting Started with the Template Toolkit
-
What the Template Toolkit Does
-
The Templating Ecosystem
-
Installing the Template Toolkit
-
Documentation and Support
-
Using the Template Toolkit
-
The Template Toolkit Language
-
Template Variables
-
Template Directives
-
Integrating and Extending the Template Toolkit
-
-
Chapter 2 Building a Complete Web Site Using the Template Toolkit
-
Getting Started
-
Template Components
-
Defining Variables
-
Generating Many Pages
-
Adding Headers and Footers Automatically
-
More Template Components
-
Wrapper and Layout Templates
-
Menu Components
-
Defining and Using Complex Data
-
Assessment
-
-
Chapter 3 The Template Language
-
Template Syntax
-
Template Variables
-
Virtual Methods
-
-
Chapter 4 Template Directives
-
Accessing Variables
-
Accessing External Templates and Files
-
Defining Local Template Blocks
-
Loops
-
Conditionals
-
Filters
-
Plugins
-
Macros
-
Template Metadata
-
Exception Handling
-
Flow Control
-
Debugging
-
Perl Blocks
-
-
Chapter 5 Filters
-
Using Filters
-
Standard Template Toolkit Filters
-
-
Chapter 6 Plugins
-
Using Plugins
-
Standard Template Toolkit Plugins
-
-
Chapter 7 Anatomy of the Template Toolkit
-
Template Modules
-
The Runtime Engine
-
Module Interfaces
-
-
Chapter 8 Extending the Template Toolkit
-
Using and Implementing Noncore Components
-
Creating Filters
-
Creating Plugins
-
Building a New Frontend
-
Changing the Language
-
-
Chapter 9 Accessing Databases
-
Using the DBI Plugin
-
Using Class::DBI
-
Using DBIx::Table2Hash
-
-
Chapter 10 XML
-
Simple XML Processsing
-
Creating XML Documents
-
Processing RSS Files with XML.RSS
-
Processing XML Documents with XML.DOM
-
Processing XML Documents with XML.XPath
-
Processing XML Documents with XML.LibXML
-
Using Views to Transform XML Content
-
-
Chapter 11 Advanced Static Web Page Techniques
-
Getting Started
-
Library Templates
-
Content Templates
-
Navigation Components
-
Structuring Page Content
-
Creating a New Skin
-
-
Chapter 12 Dynamic Web Content and Web Applications
-
CGI Scripts
-
CGI Templates
-
Apache and mod_perl
-
A Complete Web Application
-
-
Appendix A Appendix: Configuration Options
-
Template Toolkit Configuration Options
-
Apache::Template Configuration Options
-
-
Colophon
- Title:
- Perl Template Toolkit
- By:
- Darren Chamberlain, Dave Cross, Andy Wardley
- Publisher:
- O'Reilly Media
- Formats:
-
- Safari Books Online
- Print Release:
- December 2003
- Pages:
- 592
- Print ISBN:
- 978-0-596-00476-7
- | ISBN 10:
- 0-596-00476-1
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.
