NAME

Top Close Open

Template::TT3::Developer::Introduction - An introduction to TT3 for developers

INTRODUCTION

Top Close Open

This is a rough draft of the documentation that will introduce TT3 for developers.

TODO

Top Close Open

TT3 uses Badger. Badger does all the generic stuff so that TT3 can concentrate on doing template stuff. Separating it out also means that Template::TT2 and Template::TT3 can share a lot of common code. You can also use Badger bits for your own code.

Things of interest include:

Base Class - Badger::Base (and Template::TT3::Base)

Top Close Open

Does object construction, error handling, message generation.

Debugging - Badger::Debug

Top Close Open

Adds the debug() and related debugging methods to objects. Makes the DEBUG flag available.

Utils - Badger::Utils and Template::TT3::Utils

Top Close Open

Aggregates all the useful utilities in Scalar::Util, List::Util, etc., and adds a few of its own.

Class Construction - Badger::Class and Template::TT3::Class

Top Close Open

Allows us to replace all that messy boilerplate code with some nice clean declarative code.

File Handling - Badger::Filesystem

Top Close Open

Handles all interaction with the filesystem through a clean OO interface. Also has some nifty features like virtual filesystems, filesystem visitors, automatic encoding and decoding of file (e.g. to handle Unicode) and so on.

Module Locating and Loading- Badger::Factory and Template::TT3::Factory

Top Close Open

Factories are responsible for loading other modules. We do lots of this so that it's easy to load modules on demand, provide different implementations of certain modules, and so on. See Template::TT3::Developer::Factory .

AUTHOR

Top Close Open

Andy Wardley http://wardley.org/

COPYRIGHT

Top Close Open

Copyright (C) 1996-2009 Andy Wardley. All Rights Reserved.

This module is free software; you can redistribute it and/or modify it under the same terms as Perl itself.


http://tt3.template-toolkit.org/docs/Template/TT3/Developer/Introduction.pod last modified 2009-12-13 19:41:23