Debian Codegraph @

README

raw
1 NAME
2 Mason - Powerful, high-performance templating for the web and beyond
3
4 SYNOPSIS
5 foo.mc:
6 % my $name = "Mason";
7 Hello world! Welcome to <% $name %>.
8
9 #!/usr/local/bin/perl
10 use Mason;
11 my $mason = Mason->new(comp_root => '...');
12 print $mason->run('/foo')->output;
13
14 DESCRIPTION
15 Mason is a powerful Perl-based templating system, designed to generate
16 dynamic content of all kinds.
17
18 Unlike many templating systems, Mason does not attempt to invent an
19 alternate, "easier" syntax for templates. It provides a set of syntax
20 and features specific to template creation, but underneath it is still
21 clearly and proudly recognizable as Perl.
22
23 Mason is most often used for generating web pages. It has a companion
24 web framework, Poet, designed to take maximum advantage of its routing
25 and content generation features. It can also be used as the templating
26 layer for web frameworks such as Catalyst and Dancer.
27
28 All documentation is indexed at Mason::Manual.
29
30 The previous major version of Mason (1.x) is available under the name
31 HTML::Mason.
32
33 SUPPORT
34 The mailing list is `[email protected]'. You must be
35 subscribed to send a message. To subscribe, visit
36 https://lists.sourceforge.net/lists/listinfo/mason-users.
37
38 You can also visit us at `#mason' on irc:.
39
40 Bugs and feature requests will be tracked at RT:
41
42 http://rt.cpan.org/NoAuth/Bugs.html?Dist=Mason
43 [email protected]
44
45 The latest source code can be browsed and fetched at:
46
47 http://github.com/jonswar/perl-mason
48 git clone git://github.com/jonswar/perl-mason.git
49
50 The official Mason website is http://www.masonhq.com/, however it
51 contains mostly information about Mason 1. We're not sure what the
52 future of the website will be wrt Mason 2.
53
54 ACKNOWLEDGEMENTS
55 Thanks to Stevan Little and the Moose team for the awesomeness of Moose,
56 which motivated me to create a second version of Mason years after I
57 thought I was done.
58
59 Thanks to Tatsuhiko Miyagawa and the PSGI/Plack team, who freed me from
60 ever worrying about server backends again.
61
62 SEE ALSO
63 HTML::Mason
64
65 AUTHOR
66 Jonathan Swartz <[email protected]>
67
68 COPYRIGHT AND LICENSE
69 This software is copyright (c) 2012 by Jonathan Swartz.
70
71 This is free software; you can redistribute it and/or modify it under
72 the same terms as the Perl 5 programming language system itself.
73