Appendix B. Object Constructor Parameters
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.
![]() |
HTML::Mason::Interp
|
Name |
Type |
Default |
Description |
|
autohandler_name (MasonAutohandlerName) |
string |
autohandler |
The filename to use for Mason’s ‘autohandler’ capability |
|
code_cache_max_size (Mason-CodeCacheMaxSize) |
string |
10485760 |
The maximum size of the component code cache |
|
compiler (MasonCompiler) |
object |
HTML::Mason::Compiler::ToObject->new |
A Compiler object for compiling components |
|
data_dir (MasonDataDir) |
string |
A directory for storing cache files and other state information | |
|
ignore_warnings_expr (Mason-IgnoreWarningsExpr) |
regex |
qr/Subroutine .* redefined/i ... |
Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.
Read now
Unlock full access
