Template::Manual::Views 2.15 review

Download
by rbytes.net on

Template::Manual::Views is a template toolkit views (experimental). This section describes dynamic views: a powerful but experimen

License: GPL (GNU General Public License)
File size: 760K
Developer: Andy Wardley
0 stars award from rbytes.net

Template::Manual::Views is a template toolkit views (experimental).

This section describes dynamic views: a powerful but experimental new feature in version 2.01 of the Template Toolkit.

A view is effectively a collection of templates and/or variable definitions which can be passed around as a self-contained unit. This then represents a particular interface or presentation style for other objects or items of data.

You can use views to implement custom "skins" for an application or content set. You can use them to help simplify the presentation of common objects or data types. You can even use then to automate the presentation of complex data structures such as that generated in an XML::DOM tree or similar. You let an iterator do the walking, and the view does the talking (or in this case, the presenting). Voila - you have view independant, structure shy traversal using templates.

In general, views can be used in a number of different ways to achieve several different things. They elegantly solve some problems which were otherwise difficult or complicated, and make easy some things that were previously hard.

At the moment, they're still very experimental. The directive syntax and underlying API are likely to change quite considerably over the next version or two. Please be very wary about building your multi-million dollar e-commerce solutions based around this feature.

Requirements:
Perl

Template::Manual::Views 2.15 search tags