Maypole::View::Mason - A HTML::Mason view class for Maypole
BeerDB->config->{view} = "Maypole::View::Mason";
And then:
<%args> @breweries </%args> % for my $brewery (@breweries) { ... <TD><% $brewery->name %></TD> % } ...
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.
HTML::Mason
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.
View
This is the main method of this module. See Maypole::View::Base.
Maypole,HTML::Mason
Simon Cozens Marcus Ramberg
This module was made possible thanks to a Perl Foundation grant.
To install Maypole::View::Mason, copy and paste the appropriate command in to your terminal.
cpanm
cpanm Maypole::View::Mason
CPAN shell
perl -MCPAN -e shell install Maypole::View::Mason
For more information on module installation, please visit the detailed CPAN module installation guide.