/usr/bin/mason.pl is in libmason-perl 2.19-2.
This file is owned by root:root, with mode 0o755.
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 74 75 76 77 78 79 80 81 82 83 84 85 86 87 | #!/usr/bin/perl
eval 'exec /usr/bin/perl -S $0 ${1+"$@"}'
if 0; # not running under some shell
use strict;
use warnings;
use Mason::App;
Mason::App->run();
=pod
=head1 NAME
mason.pl - evaluate a mason template and output the result
=head1 SYNOPSIS
# Evaluate template from STDIN
mason.pl [mason options] [--args json-string]
# Evaluate template in string
mason.pl [mason options] [--args json-string] -e "string"
# Evaluate template in file
mason.pl [mason options] [--args json-string] template-file
=head1 DESCRIPTION
Reads a Mason template (component) from STDIN, a string, or a file. Runs the
template and outputs the result to STDOUT.
=head1 MASON OPTIONS
The following Mason options can be specified on the command line:
--data-dir /path/to/data_dir
--plugins MyPlugin,MyOtherPlugin
The C<comp_root> will be set to the directory of the template file or to a
temporary directory if using STDIN. If not specified C<data_dir> will be set to
a temporary directory.
=head1 ADDITIONAL OPTIONS
=over
=item --args json-string
A hash of arguments to pass to the page component, in JSON form. e.g.
--args '{"count":5,"names":["Alice","Bob"]}'
=back
=head1 SEE ALSO
L<Mason|Mason>
=head1 AUTHOR
Jonathan Swartz <swartz@pobox.com>
=head1 COPYRIGHT AND LICENSE
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.
=head1 AUTHOR
Jonathan Swartz <swartz@pobox.com>
=head1 COPYRIGHT AND LICENSE
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.
=cut
__END__
|