This appendix provides a quick reference to all the constructor parameters of the major pieces of the Mason framework. See Chapter 6 or the official Mason documentation for more detail, including information on how and where to specify them.
It’s important to understand the relationships among
the various pieces of Mason’s framework; Figure B-1 shows how they relate to one another. Keep in
mind that you can pass any class’s parameters to a
class that contains it. For example, you can pass any Compiler
parameters to the new( )
method of the
Interpreter, ApacheHandler, or CGIHandler. In the figure, the solid
arrows indicate a “contains one”
relationship, and the dashed arrows indicate a
“contains many” relationship.
Name |
Type |
Default |
Description |
string |
autohandler |
The filename to use for Mason’s ‘autohandler’ capability | |
string |
10485760 |
The maximum size of the component code cache | |
(MasonCompiler) |
object |
HTML::Mason::Compiler::ToObject->new |
A Compiler object for compiling components |
(MasonDataDir) |
string |
A directory for storing cache files and other state information | |
(Mason-IgnoreWarningsExpr) |
regex |
qr/Subroutine .* redefined/i |
A regular expression describing Perl warning messages to ignore |
(MasonPreloads) |
list |
A list of components to load immediately when creating the Interpreter | |
(MasonResolver) |
object |
HTML::Mason::Resolver::File->new |
A Resolver object for fetching components from storage |
(MasonStaticSource) |
boolean |
0 |
When true, we only compile source files once |
(MasonUseObjectFiles) |
boolean |
1 |
Whether to cache component objects on disk |
Name |
Type |
Default |
Description |
(MasonApacheStatusTitle) |
string |
HTML::Mason status |
The title of the Apache::Status page |
(MasonArgsMethod) |
string |
mod_perl |
Whether to use CGI.pm or Apache::Request for parsing the incoming HTTP request |
(MasonDeclineDirs) |
boolean |
1 |
Whether Mason should decline to handle requests for directories |
(MasonInterp) |
object |
HTML::Mason::Interp->new |
A Mason interpreter for processing components |
None.