Marcus Ramberg > Maypole-View-Mason-0.3 > Maypole::View::Mason

Download:
Maypole-View-Mason-0.3.tar.gz

Dependencies

Annotate this POD

View/Report Bugs
Module Version: 0.3   Source  

NAME ^

Maypole::View::Mason - A HTML::Mason view class for Maypole

SYNOPSIS ^

   BeerDB->config->{view} = "Maypole::View::Mason"; 

And then:

    <%args>
        @breweries
    </%args>

    % for my $brewery (@breweries) {
        ...
        <TD><% $brewery->name %></TD>
    % }
    ...

DESCRIPTION ^

This class allows you to use HTML::Mason components for your Maypole templates. It provides precisely the same path searching and template variables as the Template Toolkit view class, although you will need to produce your own set of templates as the factory-supplied templates are, of course, Template Toolkit ones.

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.

template

This is the main method of this module. See Maypole::View::Base.

SEE ALSO ^

Maypole,HTML::Mason

AUTHOR ^

Simon Cozens Marcus Ramberg

THANKS ^

This module was made possible thanks to a Perl Foundation grant.

syntax highlighting: