This file is indexed.

/usr/share/perl5/Mason/Manual/Setup.pod is in libmason-perl 2.24-1.

This file is owned by root:root, with mode 0o644.

The actual contents of the file can be viewed below.

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
__END__

=pod

=head1 NAME

Mason::Manual::Setup - Setting up Mason

=head1 SETUP

=head2 Web development

The most common use of Mason is to generate dynamic web content.

L<Poet> is a web framework designed specifically to work with Mason. Given an
HTTP request, Poet generates a corresponding Mason request, and uses the output
from Mason to form the HTTP response. Poet takes care of the web development
details that are outside of Mason's domain, such as server integration and
configuration. L<Poet::Manual::Tutorial|Poet::Manual::Tutorial> shows how to
set up a Poet/Mason site in great detail.

Mason can also be used in the popular web frameworks L<Catalyst|Catalyst> and
L<Dancer|Dancer>, as a drop-in replacement for their default template engines.
See L<Catalyst::View::Mason2|Catalyst::View::Mason2> and
L<Dancer::Template::Mason2|Dancer::Template::Mason2>.

=head2 Non-web development

Mason can be used to generate any kind of dynamic content. I have personally
used it to generate Apache configuration files, emails, and C++ code.

To use Mason from a script or library, use the L<Mason::Interp> API:

    my $interp = Mason->new(
        comp_root => '/path/to/comps',
        data_dir  => '/path/to/data',
        ...
    );
    my $output = $interp->run( '/request/path', foo => 5 )->output();

If you want to process a directory with a mix of Mason templates and static
files, check out L<Any::Template::ProcessDir|Any::Template::ProcessDir>.

To try out Mason syntax from the command line, use the L<mason> script:

    % mason
    2 + 2 = <% 2+2 %>
    ^D
    2 + 2 = 4

=head1 LOGGING

Mason uses L<Log::Any|Log::Any> to log various events, such as the start and
end of each request. You can direct thesse logs to the output of your choice;
see L<Log::Any::Adapter|Log::Any::Adapter>. If you don't specify anything then
the logs will go into the void.

=head1 SEE ALSO

L<Mason|Mason>

=head1 AUTHOR

Jonathan Swartz <swartz@pobox.com>

=head1 COPYRIGHT AND LICENSE

This software is copyright (c) 2012 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.

=cut