View on
MetaCPAN
Simon Flack > Maypole-2.09 > Maypole::View::TT

Download:
Maypole-2.09.tar.gz

Dependencies

Annotate this POD

CPAN RT

New  7
Open  5
View/Report Bugs
Module Version: 1.0333   Source   Latest Release: Maypole-2.13

NAME ^

Maypole::View::TT - A Template Toolkit view class for Maypole

SYNOPSIS ^

    BeerDB->config->view("Maypole::View::TT"); # The default anyway

    # Set some Template Toolkit options
    BeerDB->config->view_options( {
        TRIM        => 1,
        COMPILE_DIR => '/var/tmp/mysite/templates',
    } );

DESCRIPTION ^

This is the default view class for Maypole; it uses the Template Toolkit to fill in templates with the objects produced by Maypole's model classes. Please see the Maypole manual, and in particular, the view chapter for the template variables available and for a refresher on how template components are resolved.

The underlying Template toolkit object is configured through $r->config->view_options. See Template for available options.

template

Processes the template and sets the output. See Maypole::View::Base

AUTHOR ^

Simon Cozens

syntax highlighting: