Mason::Manual::Cookbook - Recipes for common Mason tasks
<ul> % foreach $item (@list) { <li><% $item %></li> % } </ul>
<table> <tr><th>Foo</th><th>Bar</th><th>Baz</th></tr> % foreach my $obj (@objects) { <tr> <td><% $obj->foo %></td> <td><% $obj->bar %></td> <td><% $obj->baz %></td> </tr> % } </table>
Mason
Jonathan Swartz <swartz@pobox.com>
This software is copyright (c) 2011 by Jonathan Swartz.
This is free software; you can redistribute it and/or modify it under the same terms as the Perl 5 programming language system itself.
To install Mason, copy and paste the appropriate command in to your terminal.
cpanm
cpanm Mason
CPAN shell
perl -MCPAN -e shell install Mason
For more information on module installation, please visit the detailed CPAN module installation guide.