The Perl Toolchain Summit needs more sponsors. If your company depends on Perl, please support this very important event.
<?xml version="1.0" ?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<title>HTML::Mason::Params - Mason configuration parameters</title>
<meta http-equiv="content-type" content="text/html; charset=utf-8" />
<link rev="made" href="mailto:root@localhost" />
</head>

<body style="background-color: white">


<!-- INDEX BEGIN -->
<div name="index">
<p><A NAME="__index__"></a></p>

<ul>

	<li><A HREF="#name">NAME</a></li>
	<li><A HREF="#description">DESCRIPTION</a></li>
	<li><A HREF="#perl_and_apache_names">PERL AND APACHE NAMES</a></li>
	<ul>

		<li><A HREF="#where_apache_names_are_used">Where Apache Names Are Used</a></li>
		<li><A HREF="#where_perl_names_are_used">Where Perl Names Are Used</a></li>
	</ul>

	<li><A HREF="#parameters">PARAMETERS</a></li>
	<ul>

		<li><A HREF="#allow_globals">allow_globals</a></li>
		<li><A HREF="#apache_status_title">apache_status_title</a></li>
		<li><A HREF="#args_method">args_method</a></li>
		<li><A HREF="#auto_send_headers">auto_send_headers</a></li>
		<li><A HREF="#autoflush">autoflush</a></li>
		<li><A HREF="#autohandler_name">autohandler_name</a></li>
		<li><A HREF="#buffer_preallocate_size">buffer_preallocate_size</a></li>
		<li><A HREF="#code_cache_max_size">code_cache_max_size</a></li>
		<li><A HREF="#comp_class">comp_class</a></li>
		<li><A HREF="#comp_root">comp_root</a></li>
		<li><A HREF="#compiler_class">compiler_class</a></li>
		<li><A HREF="#component_error_handler">component_error_handler</a></li>
		<li><A HREF="#data_cache_api">data_cache_api</a></li>
		<li><A HREF="#data_cache_defaults">data_cache_defaults</a></li>
		<li><A HREF="#data_dir">data_dir</a></li>
		<li><A HREF="#decline_dirs">decline_dirs</a></li>
		<li><A HREF="#default_escape_flags">default_escape_flags</a></li>
		<li><A HREF="#define_args_hash">define_args_hash</a></li>
		<li><A HREF="#dhandler_name">dhandler_name</a></li>
		<li><A HREF="#dynamic_comp_root">dynamic_comp_root</a></li>
		<li><A HREF="#enable_autoflush">enable_autoflush</a></li>
		<li><A HREF="#error_format">error_format</a></li>
		<li><A HREF="#error_mode">error_mode</a></li>
		<li><A HREF="#escape_flags">escape_flags</a></li>
		<li><A HREF="#ignore_warnings_expr">ignore_warnings_expr</a></li>
		<li><A HREF="#in_package">in_package</a></li>
		<li><A HREF="#interp_class">interp_class</a></li>
		<li><A HREF="#lexer_class">lexer_class</a></li>
		<li><A HREF="#max_recurse">max_recurse</a></li>
		<li><A HREF="#named_component_subs">named_component_subs</a></li>
		<li><A HREF="#object_file_extension">object_file_extension</a></li>
		<li><A HREF="#out_method">out_method</a></li>
		<li><A HREF="#plugins">plugins</a></li>
		<li><A HREF="#postamble">postamble</a></li>
		<li><A HREF="#postprocess_perl">postprocess_perl</a></li>
		<li><A HREF="#postprocess_text">postprocess_text</a></li>
		<li><A HREF="#preamble">preamble</a></li>
		<li><A HREF="#preloads">preloads</a></li>
		<li><A HREF="#preprocess">preprocess</a></li>
		<li><A HREF="#request_class">request_class</a></li>
		<li><A HREF="#resolver_class">resolver_class</a></li>
		<li><A HREF="#static_source">static_source</a></li>
		<li><A HREF="#static_source_touch_file">static_source_touch_file</a></li>
		<li><A HREF="#subcomp_class">subcomp_class</a></li>
		<li><A HREF="#use_object_files">use_object_files</a></li>
		<li><A HREF="#use_source_line_numbers">use_source_line_numbers</a></li>
		<li><A HREF="#use_strict">use_strict</a></li>
	</ul>

</ul>

<hr name="index" />
</div>
<!-- INDEX END -->

<p>
</p>
<h1><A NAME="name">NAME</a></h1>
<p>HTML::Mason::Params - Mason configuration parameters</p>
<p>
</p>
<hr />
<h1><A NAME="description">DESCRIPTION</a></h1>
<p>This document lists all of the Mason configuration parameters that are
intended to be used by end users.</p>
<p>
</p>
<hr />
<h1><A NAME="perl_and_apache_names">PERL AND APACHE NAMES</a></h1>
<p>Each parameter has two names: a Perl version and an Apache version.
The Perl version uses <code>lowercase_with_underscores</code>, while the Apache
version uses <code>StudlyCaps</code> with a <code>Mason</code> prefix. The conversion from
one version to the other is otherwise very predictable. For example,</p>
<ul>
<li>
<p><code>autohandler_name</code> <code>&lt;--&gt;</code> <code>MasonAutohandlerName</code></p>
</li>
<li>
<p><code>comp_root</code> <code>&lt;--&gt;</code> <code>MasonCompRoot</code></p>
</li>
<li>
<p><code>data_cache_defaults</code> <code>&lt;--&gt;</code> <code>MasonDataCacheDefaults</code></p>
</li>
</ul>
<p>
</p>
<h2><A NAME="where_apache_names_are_used">Where Apache Names Are Used</a></h2>
<p>The Apache parameter names are used in the Apache configuration file
in an <A HREF="Admin.html#basic_configuration_via_httpd_co">httpd-based configuration</a>.</p>
<p>
</p>
<h2><A NAME="where_perl_names_are_used">Where Perl Names Are Used</a></h2>
<p>The Perl parameter names are used from Perl code, i.e. anywhere other
than the Apache configuration file. For example,</p>
<ul>
<li>
<p>In an <A HREF="Admin.html#advanced_configuration">custom wrapper-based configuration</a>, you can pass most of these parameters to the
<a HREF="ApacheHandler.html">ApacheHandler</a> constructor.</p>
</li>
<li>
<p>In a <A HREF="Admin.html#using_mason_from_a_standalone_sc">standalone Mason script</a>, you can pass most of these parameters to the
<a HREF="Interp.html">Interp</a> constructor.</p>
</li>
<li>
<p>When launching a <A HREF="Devel.html#subrequests">subrequest</a>, you can
pass any of the <code>HTML::Mason::Request</code> parameters to
<A HREF="Request.html#item_make_subrequest">make_subrequest</a>.</p>
</li>
</ul>
<p>
</p>
<hr />
<h1><A NAME="parameters">PARAMETERS</a></h1>
<p>
</p>
<h2><A NAME="allow_globals">allow_globals</a></h2>
<ul>
<li><strong><A NAME="perl_name_allow_globals" class="item">Perl name:           allow_globals</a></strong>

</li>
<li><strong><A NAME="apache_name_masonallowglobals" class="item">Apache name:         MasonAllowGlobals</a></strong>

</li>
<li><strong><A NAME="type_in_httpd_conf_list" class="item">Type in httpd.conf:  list</a></strong>

</li>
<li><strong><A NAME="default" class="item">Default:             []</a></strong>

</li>
<li><strong><A NAME="belongs_to_html_mason_compiler" class="item">Belongs to:          <code>HTML::Mason::Compiler</code></a></strong>

</li>
</ul>
<p>List of variable names, complete with prefix (<code>$@%</code>), that you intend
to use as globals in components.  Normally global variables are
forbidden by <code>strict</code>, but any variable mentioned in this list is
granted a reprieve via a &quot;use vars&quot; statement. For example:</p>
<pre>
    allow_globals =&gt; [qw($DBH %session)]</pre>
<p>In a mod_perl environment, <code>$r</code> (the request object) is automatically
added to this list.</p>
<p>
</p>
<h2><A NAME="apache_status_title">apache_status_title</a></h2>
<ul>
<li><strong><A NAME="perl_name_apache_status_title" class="item">Perl name:           apache_status_title</a></strong>

</li>
<li><strong><A NAME="apache_name_masonapachestatustit" class="item">Apache name:         MasonApacheStatusTitle</a></strong>

</li>
<li><strong><A NAME="type_in_httpd_conf_string" class="item">Type in httpd.conf:  string</a></strong>

</li>
<li><strong><A NAME="default_html_mason_status" class="item">Default:             HTML::Mason status</a></strong>

</li>
<li><strong><A NAME="belongs_to_html_mason_apachehand" class="item">Belongs to:          <code>HTML::Mason::ApacheHandler</code></a></strong>

</li>
</ul>
<p>Title that you want this ApacheHandler to appear as under
Apache::Status.  Default is &quot;HTML::Mason status&quot;.  This is useful if
you create more than one ApacheHandler object and want them all
visible via Apache::Status.</p>
<p>
</p>
<h2><A NAME="args_method">args_method</a></h2>
<ul>
<li><strong><A NAME="perl_name_args_method" class="item">Perl name:           args_method</a></strong>

</li>
<li><strong><A NAME="apache_name_masonargsmethod" class="item">Apache name:         MasonArgsMethod</a></strong>

</li>
<li><strong><A NAME="type_in_httpd_conf_string2" class="item">Type in httpd.conf:  string</a></strong>

</li>
<li><strong><A NAME="default_mod_perl" class="item">Default:             mod_perl</a></strong>

</li>
<li><strong><A NAME="belongs_to_html_mason_apachehand" class="item">Belongs to:          <code>HTML::Mason::ApacheHandler</code></a></strong>

</li>
</ul>
<p>Method to use for unpacking GET and POST arguments. The valid options
are 'CGI' and 'mod_perl'; these indicate that a <code>CGI.pm</code> or
<code>Apache::Request</code> object (respectively) will be created for the
purposes of argument handling.</p>
<p>'mod_perl' is the default under mod_perl-1 and requires that you have 
installed the <code>Apache::Request</code> package.  Under mod_perl-2, the default
is 'CGI' because <code>Apache2::Request</code> is still in development.</p>
<p>If args_method is 'mod_perl', the <code>$r</code> global is upgraded to an
Apache::Request object. This object inherits all Apache methods and
adds a few of its own, dealing with parameters and file uploads.  See
<code>Apache::Request</code> for more information.</p>
<p>If the args_method is 'CGI', the Mason request object (<code>$m</code>) will have a
method called <code>cgi_object</code> available.  This method returns the CGI
object used for argument processing.</p>
<p>While Mason will load <code>Apache::Request</code> or <code>CGI</code> as needed at runtime, it
is recommended that you preload the relevant module either in your
<em class="file">httpd.conf</em> or <em class="file">handler.pl</em> file, as this will save some memory.</p>
<p>
</p>
<h2><A NAME="auto_send_headers">auto_send_headers</a></h2>
<ul>
<li><strong><A NAME="perl_name_auto_send_headers" class="item">Perl name:           auto_send_headers</a></strong>

</li>
<li><strong><A NAME="apache_name_masonautosendheaders" class="item">Apache name:         MasonAutoSendHeaders</a></strong>

</li>
<li><strong><A NAME="type_in_httpd_conf_boolean" class="item">Type in httpd.conf:  boolean</a></strong>

</li>
<li><strong><A NAME="default_1" class="item">Default:             1</a></strong>

</li>
<li><strong><A NAME="belongs_to_html_mason_request_ap" class="item">Belongs to:          <code>HTML::Mason::Request::ApacheHandler</code></a></strong>

</li>
</ul>
<A NAME="item_auto_send_headers"></a><p>True or false, default is true.  Indicates whether Mason should
automatically send HTTP headers before sending content back to the
client. If you set to false, you should call <code>$r-&gt;send_http_header</code>
manually.</p>
<p>See the <A HREF="Devel.html#sending_http_headers">sending HTTP headers</a> section of the developer's manual for more details about the automatic
header feature.</p>
<p>NOTE: This parameter has no effect under mod_perl-2, since calling
<code>$r-&gt;send_http_header</code> is no longer needed.</p>
<p>
</p>
<h2><A NAME="autoflush">autoflush</a></h2>
<ul>
<li><strong><A NAME="perl_name_autoflush" class="item">Perl name:           autoflush</a></strong>

</li>
<li><strong><A NAME="apache_name_masonautoflush" class="item">Apache name:         MasonAutoflush</a></strong>

</li>
<li><strong><A NAME="type_in_httpd_conf_boolean2" class="item">Type in httpd.conf:  boolean</a></strong>

</li>
<li><strong><A NAME="default_0" class="item">Default:             0</a></strong>

</li>
<li><strong><A NAME="belongs_to_html_mason_request" class="item">Belongs to:          <code>HTML::Mason::Request</code></a></strong>

</li>
</ul>
<p>True or false, default is false. Indicates whether to flush the output
buffer (<code>$m-&gt;flush_buffer</code>) after every string is output. Turn on
autoflush if you need to send partial output to the client, for
example in a progress meter.</p>
<p>As of Mason 1.3, autoflush will only work if <A HREF="Params.html#enable_autoflush">enable_autoflush</a> has
been set.  Components can be compiled more efficiently if they don't
have to check for autoflush. Before using autoflush you might consider
whether a few manual <code>$m-&gt;flush_buffer</code> calls would work nearly
as well.</p>
<p>
</p>
<h2><A NAME="autohandler_name">autohandler_name</a></h2>
<ul>
<li><strong><A NAME="perl_name_autohandler_name" class="item">Perl name:           autohandler_name</a></strong>

</li>
<li><strong><A NAME="apache_name_masonautohandlername" class="item">Apache name:         MasonAutohandlerName</a></strong>

</li>
<li><strong><A NAME="type_in_httpd_conf_string3" class="item">Type in httpd.conf:  string</a></strong>

</li>
<li><strong><A NAME="default_autohandler" class="item">Default:             autohandler</a></strong>

</li>
<li><strong><A NAME="belongs_to_html_mason_interp" class="item">Belongs to:          <code>HTML::Mason::Interp</code></a></strong>

</li>
</ul>
<p>File name used for
<A HREF="Devel.html#autohandlers">autohandlers</a>. Default is
&quot;autohandler&quot;.  If this is set to an empty string (&quot;&quot;) then
autohandlers are turned off entirely.</p>
<p>
</p>
<h2><A NAME="buffer_preallocate_size">buffer_preallocate_size</a></h2>
<ul>
<li><strong><A NAME="perl_name_buffer_preallocate_siz" class="item">Perl name:           buffer_preallocate_size</a></strong>

</li>
<li><strong><A NAME="apache_name_masonbufferprealloca" class="item">Apache name:         MasonBufferPreallocateSize</a></strong>

</li>
<li><strong><A NAME="type_in_httpd_conf_string4" class="item">Type in httpd.conf:  string</a></strong>

</li>
<li><strong><A NAME="default_02" class="item">Default:             0</a></strong>

</li>
<li><strong><A NAME="belongs_to_html_mason_interp2" class="item">Belongs to:          <code>HTML::Mason::Interp</code></a></strong>

</li>
</ul>
<A NAME="item_buffer_preallocate_size"></a><p>Number of bytes to preallocate in the output buffer for each request.
Defaults to 0. Setting this to, say, your maximum page size (or close
to it) can reduce the number of reallocations Perl performs as
components add to the output buffer.</p>
<p>
</p>
<h2><A NAME="code_cache_max_size">code_cache_max_size</a></h2>
<ul>
<li><strong><A NAME="perl_name_code_cache_max_size" class="item">Perl name:           code_cache_max_size</a></strong>

</li>
<li><strong><A NAME="apache_name_masoncodecachemaxsiz" class="item">Apache name:         MasonCodeCacheMaxSize</a></strong>

</li>
<li><strong><A NAME="type_in_httpd_conf_string5" class="item">Type in httpd.conf:  string</a></strong>

</li>
<li><strong><A NAME="default_unlimited" class="item">Default:             unlimited</a></strong>

</li>
<li><strong><A NAME="belongs_to_html_mason_interp3" class="item">Belongs to:          <code>HTML::Mason::Interp</code></a></strong>

</li>
</ul>
<A NAME="item_code_cache_max_size"></a><p>Specifies the maximum number of components that should be held in the
in-memory code cache. The default is 'unlimited', meaning no
components will ever be discarded; Mason can perform certain
optimizations in this mode. Setting this to zero disables the code
cache entirely. See the <A HREF="Admin.html#code_cache">code cache</a>
section of the administrator's manual for further details.</p>
<p>
</p>
<h2><A NAME="comp_class">comp_class</a></h2>
<ul>
<li><strong><A NAME="perl_name_comp_class" class="item">Perl name:           comp_class</a></strong>

</li>
<li><strong><A NAME="apache_name_masoncompclass" class="item">Apache name:         MasonCompClass</a></strong>

</li>
<li><strong><A NAME="type_in_httpd_conf_string6" class="item">Type in httpd.conf:  string</a></strong>

</li>
<li><strong><A NAME="default_html_mason_component" class="item">Default:             HTML::Mason::Component</a></strong>

</li>
<li><strong><A NAME="belongs_to_html_mason_compiler_t" class="item">Belongs to:          <code>HTML::Mason::Compiler::ToObject</code></a></strong>

</li>
</ul>
<p>The class into which component objects are blessed.  This defaults to
<a HREF="Component.html">HTML::Mason::Component</a>.</p>
<p>
</p>
<h2><A NAME="comp_root">comp_root</a></h2>
<ul>
<li><strong><A NAME="perl_name_comp_root" class="item">Perl name:           comp_root</a></strong>

</li>
<li><strong><A NAME="apache_name_masoncomproot" class="item">Apache name:         MasonCompRoot</a></strong>

</li>
<li><strong><A NAME="type_in_httpd_conf_list2" class="item">Type in httpd.conf:  list</a></strong>

</li>
<li><strong><A NAME="default_varies" class="item">Default:             Varies</a></strong>

</li>
<li><strong><A NAME="belongs_to_html_mason_interp4" class="item">Belongs to:          <code>HTML::Mason::Interp</code></a></strong>

</li>
</ul>
<A NAME="item_comp_root"></a><p>The component root marks the top of your component hierarchy and
defines how component paths are translated into real file paths. For
example, if your component root is <em class="file">/usr/local/httpd/docs</em>, a component
path of <em class="file">/products/index.html</em> translates to the file
<em class="file">/usr/local/httpd/docs/products/index.html</em>.</p>
<p>Under <a HREF="ApacheHandler.html">Apache</a> and
<a HREF="CGIHandler.html">CGI</a>, comp_root defaults to the server's
document root. In standalone mode comp_root defaults to the current
working directory.</p>
<p>This parameter may be either a scalar or an array reference.  If it is
a scalar, it should be a filesystem path indicating the component
root. If it is an array reference, it should be of the following form:</p>
<pre>
 [ [ foo =&gt; '/usr/local/foo' ],
   [ bar =&gt; '/usr/local/bar' ] ]</pre>
<p>This is an array of two-element array references, not a hash.  The
&quot;keys&quot; for each path must be unique and their &quot;values&quot; must be
filesystem paths.  These paths will be searched in the provided order
whenever a component path is resolved. For example, given the above
component roots and a component path of <em class="file">/products/index.html</em>, Mason
would search first for <em class="file">/usr/local/foo/products/index.html</em>, then for
<em class="file">/usr/local/bar/products/index.html</em>.</p>
<p>The keys are used in several ways. They help to distinguish component
caches and object files between different component roots, and they
appear in the <code>title()</code> of a component.</p>
<p>When you specify a single path for a component root, this is actually
translated into</p>
<pre>
  [ [ MAIN =&gt; path ] ]</pre>
<p>If you have turned on <A HREF="Params.html#dynamic_comp_root">dynamic_comp_root</a>, you may modify the
component root(s) of an interpreter between requests by calling
<code>$interp-&gt;comp_root</code> with a value. However, the path associated
with any given key may not change between requests. For example,
if the initial component root is</p>
<pre>
 [ [ foo =&gt; '/usr/local/foo' ],
   [ bar =&gt; '/usr/local/bar' ], ]</pre>
<p>then it may not be changed to</p>
<pre>
 [ [ foo =&gt; '/usr/local/bar' ],
   [ bar =&gt; '/usr/local/baz' ],</pre>
<p>but it may be changed to</p>
<pre>
 [ [ foo   =&gt; '/usr/local/foo' ],
   [ blarg =&gt; '/usr/local/blarg' ] ]</pre>
<p>In other words, you may add or remove key/path pairs but not modify an
already-used key/path pair. The reason for this restriction is that
the interpreter maintains a component cache per key that would become
invalid if the associated paths were to change.</p>
<p>
</p>
<h2><A NAME="compiler_class">compiler_class</a></h2>
<ul>
<li><strong><A NAME="perl_name_compiler_class" class="item">Perl name:           compiler_class</a></strong>

</li>
<li><strong><A NAME="apache_name_masoncompilerclass" class="item">Apache name:         MasonCompilerClass</a></strong>

</li>
<li><strong><A NAME="type_in_httpd_conf_string7" class="item">Type in httpd.conf:  string</a></strong>

</li>
<li><strong><A NAME="default_html_mason_compiler_toob" class="item">Default:             HTML::Mason::Compiler::ToObject</a></strong>

</li>
<li><strong><A NAME="belongs_to_html_mason_interp5" class="item">Belongs to:          <code>HTML::Mason::Interp</code></a></strong>

</li>
</ul>
<p>The class to use when creating a compiler. Defaults to
<a HREF="Compiler.html">HTML::Mason::Compiler</a>.</p>
<p>
</p>
<h2><A NAME="component_error_handler">component_error_handler</a></h2>
<ul>
<li><strong><A NAME="perl_name_component_error_handle" class="item">Perl name:           component_error_handler</a></strong>

</li>
<li><strong><A NAME="apache_name_masoncomponenterrorh" class="item">Apache name:         MasonComponentErrorHandler</a></strong>

</li>
<li><strong><A NAME="type_in_httpd_conf_code" class="item">Type in httpd.conf:  code</a></strong>

</li>
<li><strong><A NAME="my" class="item">Default:             sub { package HTML::Mason::Exceptions; use warnings; use strict 'refs'; <code>my($err)</code> = @_; return unless $err; if (UNIVERSAL::can($err, 'rethrow')) { $err-&gt;rethrow; } elsif (ref $err) { die $err; } 'HTML::Mason::Exception'-&gt;throw('error', $err); }</a></strong>

</li>
<li><strong><A NAME="belongs_to_html_mason_request2" class="item">Belongs to:          <code>HTML::Mason::Request</code></a></strong>

</li>
</ul>
<p>A code reference used to handle errors thrown during component
compilation or runtime. By default, this is a subroutine that turns
non-exception object errors in components into exceptions. If this
parameter is set to a false value, these errors are simply rethrown
as-is.</p>
<p>Turning exceptions into objects can be expensive, since this will
cause the generation of a stack trace for each error. If you are using
strings or unblessed references as exceptions in your code, you may
want to turn this off as a performance boost.</p>
<p>
</p>
<h2><A NAME="data_cache_api">data_cache_api</a></h2>
<ul>
<li><strong><A NAME="perl_name_data_cache_api" class="item">Perl name:           data_cache_api</a></strong>

</li>
<li><strong><A NAME="apache_name_masondatacacheapi" class="item">Apache name:         MasonDataCacheApi</a></strong>

</li>
<li><strong><A NAME="type_in_httpd_conf_string8" class="item">Type in httpd.conf:  string</a></strong>

</li>
<li><strong><A NAME="default_1_1" class="item">Default:             1.1</a></strong>

</li>
<li><strong><A NAME="belongs_to_html_mason_request3" class="item">Belongs to:          <code>HTML::Mason::Request</code></a></strong>

</li>
</ul>
<p>The <code>$m-&gt;cache</code> API to use:</p>
<ul>
<li>
<p>'1.1', the default, indicates a <code>Cache::Cache</code> based API.</p>
</li>
<li>
<p>'chi' indicates a <code>CHI</code> based API.</p>
</li>
<li>
<p>'1.0' indicates the custom cache API used in Mason 1.0x and
earlier. This compatibility layer is provided as a convenience for
users upgrading from older versions of Mason, but will not be
supported indefinitely.</p>
</li>
</ul>
<p>
</p>
<h2><A NAME="data_cache_defaults">data_cache_defaults</a></h2>
<ul>
<li><strong><A NAME="perl_name_data_cache_defaults" class="item">Perl name:           data_cache_defaults</a></strong>

</li>
<li><strong><A NAME="apache_name_masondatacachedefaul" class="item">Apache name:         MasonDataCacheDefaults</a></strong>

</li>
<li><strong><A NAME="type_in_httpd_conf_hash_list" class="item">Type in httpd.conf:  hash_list</a></strong>

</li>
<li><strong><A NAME="default_none" class="item">Default:             None</a></strong>

</li>
<li><strong><A NAME="belongs_to_html_mason_request4" class="item">Belongs to:          <code>HTML::Mason::Request</code></a></strong>

</li>
</ul>
<p>A hash reference of default options to use for the <code>$m-&gt;cache</code>
command.  For example, to use Cache::Cache's <code>MemoryCache</code>
implementation by default:</p>
<pre>
    data_cache_defaults =&gt; {cache_class =&gt; 'MemoryCache'}</pre>
<p>To use the CHI <code>FastMmap</code> driver by default:</p>
<pre>
    data_cache_api      =&gt; 'CHI',
    data_cache_defaults =&gt; {driver =&gt; 'FastMmap'},</pre>
<p>These settings are overriden by options given to particular
<code>$m-&gt;cache</code> calls.</p>
<p>
</p>
<h2><A NAME="data_dir">data_dir</a></h2>
<ul>
<li><strong><A NAME="perl_name_data_dir" class="item">Perl name:           data_dir</a></strong>

</li>
<li><strong><A NAME="apache_name_masondatadir" class="item">Apache name:         MasonDataDir</a></strong>

</li>
<li><strong><A NAME="type_in_httpd_conf_string9" class="item">Type in httpd.conf:  string</a></strong>

</li>
<li><strong><A NAME="default_none2" class="item">Default:             None</a></strong>

</li>
<li><strong><A NAME="belongs_to_html_mason_interp6" class="item">Belongs to:          <code>HTML::Mason::Interp</code></a></strong>

</li>
</ul>
<p>The data directory is a writable directory that Mason uses for various
features and optimizations: for example, component object files and
data cache files. Mason will create the directory on startup, if necessary, and set its
permissions according to the web server User/Group.</p>
<p>Under <a HREF="ApacheHandler.html">Apache</a>, data_dir defaults to a
directory called &quot;mason&quot; under the Apache server root. You will
need to change this on certain systems that assign a high-level
server root such as <em class="file">/usr</em>!</p>
<p>In non-Apache environments, data_dir has no default. If it is left
unspecified, Mason will not use <A HREF="Admin.html#object_files">object files</a>, and the default
<A HREF="Request.html#item_cache">data cache class</a> will be
<code>MemoryCache</code> instead of <code>FileCache</code>.</p>
<p>
</p>
<h2><A NAME="decline_dirs">decline_dirs</a></h2>
<ul>
<li><strong><A NAME="perl_name_decline_dirs" class="item">Perl name:           decline_dirs</a></strong>

</li>
<li><strong><A NAME="apache_name_masondeclinedirs" class="item">Apache name:         MasonDeclineDirs</a></strong>

</li>
<li><strong><A NAME="type_in_httpd_conf_boolean3" class="item">Type in httpd.conf:  boolean</a></strong>

</li>
<li><strong><A NAME="default_12" class="item">Default:             1</a></strong>

</li>
<li><strong><A NAME="belongs_to_html_mason_apachehand" class="item">Belongs to:          <code>HTML::Mason::ApacheHandler</code></a></strong>

</li>
</ul>
<p>True or false, default is true. Indicates whether Mason should decline
directory requests, leaving Apache to serve up a directory index or a
<code>FORBIDDEN</code> error as appropriate. See the <A HREF="Admin.html#allowing_directory_requests">allowing directory requests</a> section of the administrator's manual
for more information about handling directories with Mason.</p>
<p>
</p>
<h2><A NAME="default_escape_flags">default_escape_flags</a></h2>
<ul>
<li><strong><A NAME="perl_name_default_escape_flags" class="item">Perl name:           default_escape_flags</a></strong>

</li>
<li><strong><A NAME="apache_name_masondefaultescapefl" class="item">Apache name:         MasonDefaultEscapeFlags</a></strong>

</li>
<li><strong><A NAME="type_in_httpd_conf_string10" class="item">Type in httpd.conf:  string</a></strong>

</li>
<li><strong><A NAME="default2" class="item">Default:             []</a></strong>

</li>
<li><strong><A NAME="belongs_to_html_mason_compiler2" class="item">Belongs to:          <code>HTML::Mason::Compiler</code></a></strong>

</li>
</ul>
<p>Escape flags to apply to all &lt;% %&gt; expressions by default. The current
valid flags are</p>
<pre>
    h - escape for HTML ('&lt;' =&gt; '&amp;lt;', etc.)
    u - escape for URL (':' =&gt; '%3A', etc.)</pre>
<p>The developer can override default escape flags on a per-expression
basis; see the <A HREF="Devel.html#escaping_expressions">escaping expressions</a> section of the developer's manual.</p>
<p>If you want to set <em>multiple</em> flags as the default, this should be
given as a reference to an array of flags.</p>
<p>
</p>
<h2><A NAME="define_args_hash">define_args_hash</a></h2>
<ul>
<li><strong><A NAME="perl_name_define_args_hash" class="item">Perl name:           define_args_hash</a></strong>

</li>
<li><strong><A NAME="apache_name_masondefineargshash" class="item">Apache name:         MasonDefineArgsHash</a></strong>

</li>
<li><strong><A NAME="type_in_httpd_conf_string11" class="item">Type in httpd.conf:  string</a></strong>

</li>
<li><strong><A NAME="default_auto" class="item">Default:             auto</a></strong>

</li>
<li><strong><A NAME="belongs_to_html_mason_compiler_t" class="item">Belongs to:          <code>HTML::Mason::Compiler::ToObject</code></a></strong>

</li>
</ul>
<p>One of &quot;always&quot;, &quot;auto&quot;, or &quot;never&quot;.  This determines whether or not
an <code>%ARGS</code> hash is created in components.  If it is set to &quot;always&quot;,
one is always defined.  If set to &quot;never&quot;, it is never defined.</p>
<p>The default, &quot;auto&quot;, will cause the hash to be defined only if some
part of the component contains the string &quot;ARGS&quot;.  This is somewhat
crude, and may result in some false positives, but this is preferable
to false negatives.</p>
<p>Not defining the args hash means that we can avoid copying component
arguments, which can save memory and slightly improve execution speed.</p>
<p>
</p>
<h2><A NAME="dhandler_name">dhandler_name</a></h2>
<ul>
<li><strong><A NAME="perl_name_dhandler_name" class="item">Perl name:           dhandler_name</a></strong>

</li>
<li><strong><A NAME="apache_name_masondhandlername" class="item">Apache name:         MasonDhandlerName</a></strong>

</li>
<li><strong><A NAME="type_in_httpd_conf_string12" class="item">Type in httpd.conf:  string</a></strong>

</li>
<li><strong><A NAME="default_dhandler" class="item">Default:             dhandler</a></strong>

</li>
<li><strong><A NAME="belongs_to_html_mason_request5" class="item">Belongs to:          <code>HTML::Mason::Request</code></a></strong>

</li>
</ul>
<p>File name used for <A HREF="Devel.html#dhandlers">dhandlers</a>. Default
is &quot;dhandler&quot;.  If this is set to an empty string (&quot;&quot;) then dhandlers
are turned off entirely.</p>
<p>
</p>
<h2><A NAME="dynamic_comp_root">dynamic_comp_root</a></h2>
<ul>
<li><strong><A NAME="perl_name_dynamic_comp_root" class="item">Perl name:           dynamic_comp_root</a></strong>

</li>
<li><strong><A NAME="apache_name_masondynamiccomproot" class="item">Apache name:         MasonDynamicCompRoot</a></strong>

</li>
<li><strong><A NAME="type_in_httpd_conf_boolean4" class="item">Type in httpd.conf:  boolean</a></strong>

</li>
<li><strong><A NAME="default_03" class="item">Default:             0</a></strong>

</li>
<li><strong><A NAME="belongs_to_html_mason_interp7" class="item">Belongs to:          <code>HTML::Mason::Interp</code></a></strong>

</li>
</ul>
<p>True or false, defaults to false. Indicates whether the <A HREF="Params.html#comp_root">comp_root</a>
can be modified on this interpreter between requests. Mason can
perform a few optimizations with a fixed component root, so you
should only set this to true if you actually need it.</p>
<p>
</p>
<h2><A NAME="enable_autoflush">enable_autoflush</a></h2>
<ul>
<li><strong><A NAME="perl_name_enable_autoflush" class="item">Perl name:           enable_autoflush</a></strong>

</li>
<li><strong><A NAME="apache_name_masonenableautoflush" class="item">Apache name:         MasonEnableAutoflush</a></strong>

</li>
<li><strong><A NAME="type_in_httpd_conf_boolean5" class="item">Type in httpd.conf:  boolean</a></strong>

</li>
<li><strong><A NAME="default_13" class="item">Default:             1</a></strong>

</li>
<li><strong><A NAME="belongs_to_html_mason_compiler3" class="item">Belongs to:          <code>HTML::Mason::Compiler</code></a></strong>

</li>
</ul>
<p>True or false, default is true. Indicates whether components are
compiled with support for <A HREF="Params.html#autoflush">autoflush</a>. The component can be compiled
to a more efficient form if it does not have to check for autoflush
mode, so you should set this to 0 if you can.</p>
<p>
</p>
<h2><A NAME="error_format">error_format</a></h2>
<ul>
<li><strong><A NAME="perl_name_error_format" class="item">Perl name:           error_format</a></strong>

</li>
<li><strong><A NAME="apache_name_masonerrorformat" class="item">Apache name:         MasonErrorFormat</a></strong>

</li>
<li><strong><A NAME="type_in_httpd_conf_string13" class="item">Type in httpd.conf:  string</a></strong>

</li>
<li><strong><A NAME="default_varies2" class="item">Default:             Varies</a></strong>

</li>
<li><strong><A NAME="belongs_to_html_mason_request6" class="item">Belongs to:          <code>HTML::Mason::Request</code></a></strong>

</li>
</ul>
<p>Indicates how errors are formatted. The built-in choices are</p>
<ul>
<li>
<p><em>brief</em> - just the error message with no trace information</p>
</li>
<li>
<p><em>text</em> - a multi-line text format</p>
</li>
<li>
<p><em>line</em> - a single-line text format, with different pieces of
information separated by tabs (useful for log files)</p>
</li>
<li>
<p><em>html</em> - a fancy html format</p>
</li>
</ul>
<p>The default format under <a HREF="ApacheHandler.html">Apache</a> and
<a HREF="CGIHandler.html">CGI</a> is either <em>line</em> or <em>html</em> depending
on whether the error mode is <em>fatal</em> or <em>output</em>, respectively. The
default for standalone mode is <em>text</em>.</p>
<p>The formats correspond to <code>HTML::Mason::Exception</code> methods named
as_<em>format</em>. You can define your own format by creating an
appropriately named method; for example, to define an &quot;xml&quot; format,
create a method <code>HTML::Mason::Exception::as_xml</code> patterned after one of
the built-in methods.</p>
<p>
</p>
<h2><A NAME="error_mode">error_mode</a></h2>
<ul>
<li><strong><A NAME="perl_name_error_mode" class="item">Perl name:           error_mode</a></strong>

</li>
<li><strong><A NAME="apache_name_masonerrormode" class="item">Apache name:         MasonErrorMode</a></strong>

</li>
<li><strong><A NAME="type_in_httpd_conf_string14" class="item">Type in httpd.conf:  string</a></strong>

</li>
<li><strong><A NAME="default_varies3" class="item">Default:             Varies</a></strong>

</li>
<li><strong><A NAME="belongs_to_html_mason_request7" class="item">Belongs to:          <code>HTML::Mason::Request</code></a></strong>

</li>
</ul>
<p>Indicates how errors are returned to the caller.  The choices are
<em>fatal</em>, meaning die with the error, and <em>output</em>, meaning output
the error just like regular output.</p>
<p>The default under <a HREF="ApacheHandler.html">Apache</a> and
<a HREF="CGIHandler.html">CGI</a> is <em>output</em>, causing the error to be
displayed in the browser.  The default for standalone mode is
<em>fatal</em>.</p>
<p>
</p>
<h2><A NAME="escape_flags">escape_flags</a></h2>
<ul>
<li><strong><A NAME="perl_name_escape_flags" class="item">Perl name:           escape_flags</a></strong>

</li>
<li><strong><A NAME="apache_name_masonescapeflags" class="item">Apache name:         MasonEscapeFlags</a></strong>

</li>
<li><strong><A NAME="type_in_httpd_conf_hash_list2" class="item">Type in httpd.conf:  hash_list</a></strong>

</li>
<li><strong><A NAME="default_none3" class="item">Default:             None</a></strong>

</li>
<li><strong><A NAME="belongs_to_html_mason_interp8" class="item">Belongs to:          <code>HTML::Mason::Interp</code></a></strong>

</li>
</ul>
<p>A hash reference of escape flags to set for this object.  See the
section on the <A HREF="Interp.html#item_set_escape">set_escape method</a> for more details.</p>
<p>
</p>
<h2><A NAME="ignore_warnings_expr">ignore_warnings_expr</a></h2>
<ul>
<li><strong><A NAME="perl_name_ignore_warnings_expr" class="item">Perl name:           ignore_warnings_expr</a></strong>

</li>
<li><strong><A NAME="apache_name_masonignorewarningse" class="item">Apache name:         MasonIgnoreWarningsExpr</a></strong>

</li>
<li><strong><A NAME="type_in_httpd_conf_regex" class="item">Type in httpd.conf:  regex</a></strong>

</li>
<li><strong><A NAME="default_qr_subroutine_redefined_" class="item">Default:             qr/Subroutine .* redefined/i</a></strong>

</li>
<li><strong><A NAME="belongs_to_html_mason_interp9" class="item">Belongs to:          <code>HTML::Mason::Interp</code></a></strong>

</li>
</ul>
<p>Regular expression indicating which warnings to ignore when loading
components. Any warning that is not ignored will prevent the
component from being loaded and executed. For example:</p>
<pre>
    ignore_warnings_expr =&gt;
        'Global symbol.*requires explicit package'</pre>
<p>If set to undef, all warnings are heeded. If set to '.', warnings
are turned off completely as a specially optimized case.</p>
<p>By default, this is set to 'Subroutine .* redefined'.  This allows you
to declare global subroutines inside &lt;%once&gt; sections and not receive
an error when the component is reloaded.</p>
<p>
</p>
<h2><A NAME="in_package">in_package</a></h2>
<ul>
<li><strong><A NAME="perl_name_in_package" class="item">Perl name:           in_package</a></strong>

</li>
<li><strong><A NAME="apache_name_masoninpackage" class="item">Apache name:         MasonInPackage</a></strong>

</li>
<li><strong><A NAME="type_in_httpd_conf_string15" class="item">Type in httpd.conf:  string</a></strong>

</li>
<li><strong><A NAME="default_html_mason_commands" class="item">Default:             HTML::Mason::Commands</a></strong>

</li>
<li><strong><A NAME="belongs_to_html_mason_compiler_t" class="item">Belongs to:          <code>HTML::Mason::Compiler::ToObject</code></a></strong>

</li>
</ul>
<p>This is the package in which a component's code is executed.  For
historical reasons, this defaults to <code>HTML::Mason::Commands</code>.</p>
<p>
</p>
<h2><A NAME="interp_class">interp_class</a></h2>
<ul>
<li><strong><A NAME="perl_name_interp_class" class="item">Perl name:           interp_class</a></strong>

</li>
<li><strong><A NAME="apache_name_masoninterpclass" class="item">Apache name:         MasonInterpClass</a></strong>

</li>
<li><strong><A NAME="type_in_httpd_conf_string16" class="item">Type in httpd.conf:  string</a></strong>

</li>
<li><strong><A NAME="default_html_mason_interp" class="item">Default:             HTML::Mason::Interp</a></strong>

</li>
<li><strong><A NAME="belongs_to_html_mason_apachehand" class="item">Belongs to:          <code>HTML::Mason::ApacheHandler</code></a></strong>

</li>
</ul>
<p>The class to use when creating a interpreter. Defaults to
<a HREF="Interp.html">HTML::Mason::Interp</a>.</p>
<p>
</p>
<h2><A NAME="lexer_class">lexer_class</a></h2>
<ul>
<li><strong><A NAME="perl_name_lexer_class" class="item">Perl name:           lexer_class</a></strong>

</li>
<li><strong><A NAME="apache_name_masonlexerclass" class="item">Apache name:         MasonLexerClass</a></strong>

</li>
<li><strong><A NAME="type_in_httpd_conf_string17" class="item">Type in httpd.conf:  string</a></strong>

</li>
<li><strong><A NAME="default_html_mason_lexer" class="item">Default:             HTML::Mason::Lexer</a></strong>

</li>
<li><strong><A NAME="belongs_to_html_mason_compiler4" class="item">Belongs to:          <code>HTML::Mason::Compiler</code></a></strong>

</li>
</ul>
<p>The class to use when creating a lexer. Defaults to <a HREF="Lexer.html">HTML::Mason::Lexer</a>.</p>
<p>
</p>
<h2><A NAME="max_recurse">max_recurse</a></h2>
<ul>
<li><strong><A NAME="perl_name_max_recurse" class="item">Perl name:           max_recurse</a></strong>

</li>
<li><strong><A NAME="apache_name_masonmaxrecurse" class="item">Apache name:         MasonMaxRecurse</a></strong>

</li>
<li><strong><A NAME="type_in_httpd_conf_string18" class="item">Type in httpd.conf:  string</a></strong>

</li>
<li><strong><A NAME="default_32" class="item">Default:             32</a></strong>

</li>
<li><strong><A NAME="belongs_to_html_mason_request8" class="item">Belongs to:          <code>HTML::Mason::Request</code></a></strong>

</li>
</ul>
<p>The maximum recursion depth for the component stack, for the request
stack, and for the inheritance stack. An error is signalled if the
maximum is exceeded.  Default is 32.</p>
<p>
</p>
<h2><A NAME="named_component_subs">named_component_subs</a></h2>
<ul>
<li><strong><A NAME="perl_name_named_component_subs" class="item">Perl name:           named_component_subs</a></strong>

</li>
<li><strong><A NAME="apache_name_masonnamedcomponents" class="item">Apache name:         MasonNamedComponentSubs</a></strong>

</li>
<li><strong><A NAME="type_in_httpd_conf_boolean6" class="item">Type in httpd.conf:  boolean</a></strong>

</li>
<li><strong><A NAME="default_04" class="item">Default:             0</a></strong>

</li>
<li><strong><A NAME="belongs_to_html_mason_compiler_t" class="item">Belongs to:          <code>HTML::Mason::Compiler::ToObject</code></a></strong>

</li>
</ul>
<p>When compiling a component, use uniquely named subroutines for the a
component's body, subcomponents, and methods. Doing this allows you to
effectively profile Mason components. Without this, all components
simply show up as __ANON__ or something similar in the profiler.</p>
<p>
</p>
<h2><A NAME="object_file_extension">object_file_extension</a></h2>
<ul>
<li><strong><A NAME="perl_name_object_file_extension" class="item">Perl name:           object_file_extension</a></strong>

</li>
<li><strong><A NAME="apache_name_masonobjectfileexten" class="item">Apache name:         MasonObjectFileExtension</a></strong>

</li>
<li><strong><A NAME="type_in_httpd_conf_string19" class="item">Type in httpd.conf:  string</a></strong>

</li>
<li><strong><A NAME="default_obj" class="item">Default:             .obj</a></strong>

</li>
<li><strong><A NAME="belongs_to_html_mason_interp10" class="item">Belongs to:          <code>HTML::Mason::Interp</code></a></strong>

</li>
</ul>
<p>Extension to add to the end of object files. Default is &quot;.obj&quot;.</p>
<p>
</p>
<h2><A NAME="out_method">out_method</a></h2>
<ul>
<li><strong><A NAME="perl_name_out_method" class="item">Perl name:           out_method</a></strong>

</li>
<li><strong><A NAME="apache_name_masonoutmethod" class="item">Apache name:         MasonOutMethod</a></strong>

</li>
<li><strong><A NAME="type_in_httpd_conf_code2" class="item">Type in httpd.conf:  code</a></strong>

</li>
<li><strong><A NAME="default_print_to_stdout" class="item">Default:             Print to STDOUT</a></strong>

</li>
<li><strong><A NAME="belongs_to_html_mason_request9" class="item">Belongs to:          <code>HTML::Mason::Request</code></a></strong>

</li>
</ul>
<p>Indicates where to send output. If out_method is a reference to a
scalar, output is appended to the scalar.  If out_method is a
reference to a subroutine, the subroutine is called with each output
string. For example, to send output to a file called &quot;mason.out&quot;:</p>
<pre>
    my $fh = new IO::File &quot;&gt;mason.out&quot;;
    ...
    out_method =&gt; sub { $fh-&gt;print($_[0]) }</pre>
<p>By default, out_method prints to standard output. Under
<a HREF="ApacheHandler.html">Apache</a>, standard output is
redirected to <code>$r-&gt;print</code>.</p>
<p>
</p>
<h2><A NAME="plugins">plugins</a></h2>
<ul>
<li><strong><A NAME="perl_name_plugins" class="item">Perl name:           plugins</a></strong>

</li>
<li><strong><A NAME="apache_name_masonplugins" class="item">Apache name:         MasonPlugins</a></strong>

</li>
<li><strong><A NAME="type_in_httpd_conf_list3" class="item">Type in httpd.conf:  list</a></strong>

</li>
<li><strong><A NAME="default3" class="item">Default:             []</a></strong>

</li>
<li><strong><A NAME="belongs_to_html_mason_request10" class="item">Belongs to:          <code>HTML::Mason::Request</code></a></strong>

</li>
</ul>
<p>An array of plugins that will be called at various stages of request
processing.  Please see <a HREF="Plugin.html">HTML::Mason::Plugin</a> for
details.</p>
<p>
</p>
<h2><A NAME="postamble">postamble</a></h2>
<ul>
<li><strong><A NAME="perl_name_postamble" class="item">Perl name:           postamble</a></strong>

</li>
<li><strong><A NAME="apache_name_masonpostamble" class="item">Apache name:         MasonPostamble</a></strong>

</li>
<li><strong><A NAME="type_in_httpd_conf_string20" class="item">Type in httpd.conf:  string</a></strong>

</li>
<li><strong><A NAME="default_none4" class="item">Default:             None</a></strong>

</li>
<li><strong><A NAME="belongs_to_html_mason_compiler_t" class="item">Belongs to:          <code>HTML::Mason::Compiler::ToObject</code></a></strong>

</li>
</ul>
<p>Text given for this parameter is placed at the end of each
component. See also <A HREF="Params.html#preamble">preamble</a>.  The request will be available as
<code>$m</code> in postamble code.</p>
<p>
</p>
<h2><A NAME="postprocess_perl">postprocess_perl</a></h2>
<ul>
<li><strong><A NAME="perl_name_postprocess_perl" class="item">Perl name:           postprocess_perl</a></strong>

</li>
<li><strong><A NAME="apache_name_masonpostprocessperl" class="item">Apache name:         MasonPostprocessPerl</a></strong>

</li>
<li><strong><A NAME="type_in_httpd_conf_code3" class="item">Type in httpd.conf:  code</a></strong>

</li>
<li><strong><A NAME="default_none5" class="item">Default:             None</a></strong>

</li>
<li><strong><A NAME="belongs_to_html_mason_compiler5" class="item">Belongs to:          <code>HTML::Mason::Compiler</code></a></strong>

</li>
</ul>
<p>Sub reference that is called to postprocess the Perl portion of a
compiled component, just before it is assembled into its final
subroutine form.  The sub is called with a single parameter, a scalar
reference to the Perl portion of the component.  The sub is expected
to process the string in-place. See also
<A HREF="Params.html#preprocess">preprocess</a> and <A HREF="Params.html#postprocess_text">postprocess_text</a>.</p>
<p>
</p>
<h2><A NAME="postprocess_text">postprocess_text</a></h2>
<ul>
<li><strong><A NAME="perl_name_postprocess_text" class="item">Perl name:           postprocess_text</a></strong>

</li>
<li><strong><A NAME="apache_name_masonpostprocesstext" class="item">Apache name:         MasonPostprocessText</a></strong>

</li>
<li><strong><A NAME="type_in_httpd_conf_code4" class="item">Type in httpd.conf:  code</a></strong>

</li>
<li><strong><A NAME="default_none6" class="item">Default:             None</a></strong>

</li>
<li><strong><A NAME="belongs_to_html_mason_compiler6" class="item">Belongs to:          <code>HTML::Mason::Compiler</code></a></strong>

</li>
</ul>
<p>Sub reference that is called to postprocess the text portion of a
compiled component, just before it is assembled into its final
subroutine form.  The sub is called with a single parameter, a scalar
reference to the text portion of the component.  The sub is expected
to process the string in-place. See also
<A HREF="Params.html#preprocess">preprocess</a> and <A HREF="Params.html#postprocess_perl">postprocess_perl</a>.</p>
<p>
</p>
<h2><A NAME="preamble">preamble</a></h2>
<ul>
<li><strong><A NAME="perl_name_preamble" class="item">Perl name:           preamble</a></strong>

</li>
<li><strong><A NAME="apache_name_masonpreamble" class="item">Apache name:         MasonPreamble</a></strong>

</li>
<li><strong><A NAME="type_in_httpd_conf_string21" class="item">Type in httpd.conf:  string</a></strong>

</li>
<li><strong><A NAME="default_none7" class="item">Default:             None</a></strong>

</li>
<li><strong><A NAME="belongs_to_html_mason_compiler_t" class="item">Belongs to:          <code>HTML::Mason::Compiler::ToObject</code></a></strong>

</li>
</ul>
<p>Text given for this parameter is placed at the beginning of each
component, but after the execution of any <code>&lt;%once&gt;</code> block. See
also <A HREF="Params.html#postamble">postamble</a>. The request will be available as <code>$m</code> in preamble
code.</p>
<p>
</p>
<h2><A NAME="preloads">preloads</a></h2>
<ul>
<li><strong><A NAME="perl_name_preloads" class="item">Perl name:           preloads</a></strong>

</li>
<li><strong><A NAME="apache_name_masonpreloads" class="item">Apache name:         MasonPreloads</a></strong>

</li>
<li><strong><A NAME="type_in_httpd_conf_list4" class="item">Type in httpd.conf:  list</a></strong>

</li>
<li><strong><A NAME="default_none8" class="item">Default:             None</a></strong>

</li>
<li><strong><A NAME="belongs_to_html_mason_interp11" class="item">Belongs to:          <code>HTML::Mason::Interp</code></a></strong>

</li>
</ul>
<p>A list of component paths, optionally with glob wildcards, to load
when the interpreter initializes. e.g.</p>
<pre>
    preloads =&gt; ['/foo/index.html','/bar/*.pl']</pre>
<p>Default is the empty list.  For maximum performance, this should only
be used for components that are frequently viewed and rarely updated.
See the <A HREF="Admin.html#preloading_components">preloading components</a> section of the administrator's manual for further details.</p>
<p>As mentioned in the developer's manual, a component's <code>&lt;%once&gt;</code>
section is executed when it is loaded.  For preloaded components, this
means that this section will be executed before a Mason or Apache
request exist, so preloading a component that uses <code>$m</code> or <code>$r</code> in a
<code>&lt;%once&gt;</code> section will fail.</p>
<p>
</p>
<h2><A NAME="preprocess">preprocess</a></h2>
<ul>
<li><strong><A NAME="perl_name_preprocess" class="item">Perl name:           preprocess</a></strong>

</li>
<li><strong><A NAME="apache_name_masonpreprocess" class="item">Apache name:         MasonPreprocess</a></strong>

</li>
<li><strong><A NAME="type_in_httpd_conf_code5" class="item">Type in httpd.conf:  code</a></strong>

</li>
<li><strong><A NAME="default_none9" class="item">Default:             None</a></strong>

</li>
<li><strong><A NAME="belongs_to_html_mason_compiler7" class="item">Belongs to:          <code>HTML::Mason::Compiler</code></a></strong>

</li>
</ul>
<p>Sub reference that is called to preprocess each component before the compiler does
it's magic.  The sub is called with a single parameter, a scalar reference
to the script.  The sub is expected to process the script in-place.   This is
one way to extend the HTML::Mason syntax with new tags, etc., although a much
more flexible way is to subclass the Lexer or Compiler class. See also
<A HREF="Params.html#postprocess_text">postprocess_text</a> and <A HREF="Params.html#postprocess_perl">postprocess_perl</a>.</p>
<p>
</p>
<h2><A NAME="request_class">request_class</a></h2>
<ul>
<li><strong><A NAME="perl_name_request_class" class="item">Perl name:           request_class</a></strong>

</li>
<li><strong><A NAME="apache_name_masonrequestclass" class="item">Apache name:         MasonRequestClass</a></strong>

</li>
<li><strong><A NAME="type_in_httpd_conf_string22" class="item">Type in httpd.conf:  string</a></strong>

</li>
<li><strong><A NAME="default_html_mason_request" class="item">Default:             HTML::Mason::Request</a></strong>

</li>
<li><strong><A NAME="belongs_to_html_mason_interp12" class="item">Belongs to:          <code>HTML::Mason::Interp</code></a></strong>

</li>
</ul>
<p>The class to use when creating requests. Defaults to
<a HREF="Request.html">HTML::Mason::Request</a>.</p>
<p>
</p>
<h2><A NAME="resolver_class">resolver_class</a></h2>
<ul>
<li><strong><A NAME="perl_name_resolver_class" class="item">Perl name:           resolver_class</a></strong>

</li>
<li><strong><A NAME="apache_name_masonresolverclass" class="item">Apache name:         MasonResolverClass</a></strong>

</li>
<li><strong><A NAME="type_in_httpd_conf_string23" class="item">Type in httpd.conf:  string</a></strong>

</li>
<li><strong><A NAME="default_html_mason_resolver_file" class="item">Default:             HTML::Mason::Resolver::File</a></strong>

</li>
<li><strong><A NAME="belongs_to_html_mason_interp13" class="item">Belongs to:          <code>HTML::Mason::Interp</code></a></strong>

</li>
</ul>
<p>The class to use when creating a resolver. Defaults to
<a HREF="Resolver/File.html">HTML::Mason::Resolver::File</a>.</p>
<p>
</p>
<h2><A NAME="static_source">static_source</a></h2>
<ul>
<li><strong><A NAME="perl_name_static_source" class="item">Perl name:           static_source</a></strong>

</li>
<li><strong><A NAME="apache_name_masonstaticsource" class="item">Apache name:         MasonStaticSource</a></strong>

</li>
<li><strong><A NAME="type_in_httpd_conf_boolean7" class="item">Type in httpd.conf:  boolean</a></strong>

</li>
<li><strong><A NAME="default_05" class="item">Default:             0</a></strong>

</li>
<li><strong><A NAME="belongs_to_html_mason_interp14" class="item">Belongs to:          <code>HTML::Mason::Interp</code></a></strong>

</li>
</ul>
<p>True or false, default is false. When false, Mason checks the
timestamp of the component source file each time the component is used
to see if it has changed. This provides the instant feedback for
source changes that is expected for development.  However it does
entail a file stat for each component executed.</p>
<p>When true, Mason assumes that the component source tree is unchanging:
it will not check component source files to determine if the memory
cache or object file has expired.  This can save many file stats per
request. However, in order to get Mason to recognize a component
source change, you must flush the memory cache and remove object files.
See <A HREF="Params.html#static_source_touch_file">static_source_touch_file</a> for one easy way to arrange this.</p>
<p>We recommend turning this mode on in your production sites if
possible, if performance is of any concern.</p>
<p>
</p>
<h2><A NAME="static_source_touch_file">static_source_touch_file</a></h2>
<ul>
<li><strong><A NAME="perl_name_static_source_touch_fi" class="item">Perl name:           static_source_touch_file</a></strong>

</li>
<li><strong><A NAME="apache_name_masonstaticsourcetou" class="item">Apache name:         MasonStaticSourceTouchFile</a></strong>

</li>
<li><strong><A NAME="type_in_httpd_conf_string24" class="item">Type in httpd.conf:  string</a></strong>

</li>
<li><strong><A NAME="default_none10" class="item">Default:             None</a></strong>

</li>
<li><strong><A NAME="belongs_to_html_mason_interp15" class="item">Belongs to:          <code>HTML::Mason::Interp</code></a></strong>

</li>
</ul>
<p>Specifies a filename that Mason will check once at the beginning of
of every request. When the file timestamp changes, Mason will (1) clear
its in-memory component cache, and (2) remove object files if
they have not already been deleted by another process.</p>
<p>This provides a convenient way to implement <A HREF="Params.html#static_source">static_source</a> mode.
All you need to do is make sure that a single file gets touched
whenever components change. For Mason's part, checking a single
file at the beginning of a request is much cheaper than checking
every component file when static_source=0.</p>
<p>
</p>
<h2><A NAME="subcomp_class">subcomp_class</a></h2>
<ul>
<li><strong><A NAME="perl_name_subcomp_class" class="item">Perl name:           subcomp_class</a></strong>

</li>
<li><strong><A NAME="apache_name_masonsubcompclass" class="item">Apache name:         MasonSubcompClass</a></strong>

</li>
<li><strong><A NAME="type_in_httpd_conf_string25" class="item">Type in httpd.conf:  string</a></strong>

</li>
<li><strong><A NAME="default_html_mason_component_sub" class="item">Default:             HTML::Mason::Component::Subcomponent</a></strong>

</li>
<li><strong><A NAME="belongs_to_html_mason_compiler_t" class="item">Belongs to:          <code>HTML::Mason::Compiler::ToObject</code></a></strong>

</li>
</ul>
<p>The class into which subcomponent objects are blessed.  This defaults
to <a HREF="Component/Subcomponent.html">HTML::Mason::Component::Subcomponent</a>.</p>
<p>
</p>
<h2><A NAME="use_object_files">use_object_files</a></h2>
<ul>
<li><strong><A NAME="perl_name_use_object_files" class="item">Perl name:           use_object_files</a></strong>

</li>
<li><strong><A NAME="apache_name_masonuseobjectfiles" class="item">Apache name:         MasonUseObjectFiles</a></strong>

</li>
<li><strong><A NAME="type_in_httpd_conf_boolean8" class="item">Type in httpd.conf:  boolean</a></strong>

</li>
<li><strong><A NAME="default_14" class="item">Default:             1</a></strong>

</li>
<li><strong><A NAME="belongs_to_html_mason_interp16" class="item">Belongs to:          <code>HTML::Mason::Interp</code></a></strong>

</li>
</ul>
<p>True or false, default is true.  Specifies whether Mason creates
object files to save the results of component parsing. You may want to
turn off object files for disk space reasons, but otherwise this
should be left alone.</p>
<p>
</p>
<h2><A NAME="use_source_line_numbers">use_source_line_numbers</a></h2>
<ul>
<li><strong><A NAME="perl_name_use_source_line_number" class="item">Perl name:           use_source_line_numbers</a></strong>

</li>
<li><strong><A NAME="apache_name_masonusesourcelinenu" class="item">Apache name:         MasonUseSourceLineNumbers</a></strong>

</li>
<li><strong><A NAME="type_in_httpd_conf_boolean9" class="item">Type in httpd.conf:  boolean</a></strong>

</li>
<li><strong><A NAME="default_15" class="item">Default:             1</a></strong>

</li>
<li><strong><A NAME="belongs_to_html_mason_compiler8" class="item">Belongs to:          <code>HTML::Mason::Compiler</code></a></strong>

</li>
</ul>
<p>True or false, default is true. Indicates whether component line
numbers that appear in error messages, stack traces, etc. are in terms
of the source file instead of the object file. Mason does this by
inserting '#line' directives into compiled components.  While source
line numbers are more immediately helpful, object file line numbers
may be more appropriate for in-depth debugging sessions.</p>
<p>
</p>
<h2><A NAME="use_strict">use_strict</a></h2>
<ul>
<li><strong><A NAME="perl_name_use_strict" class="item">Perl name:           use_strict</a></strong>

</li>
<li><strong><A NAME="apache_name_masonusestrict" class="item">Apache name:         MasonUseStrict</a></strong>

</li>
<li><strong><A NAME="type_in_httpd_conf_boolean10" class="item">Type in httpd.conf:  boolean</a></strong>

</li>
<li><strong><A NAME="default_16" class="item">Default:             1</a></strong>

</li>
<li><strong><A NAME="belongs_to_html_mason_compiler_t" class="item">Belongs to:          <code>HTML::Mason::Compiler::ToObject</code></a></strong>

</li>
</ul>
<p>True or false, default is true. Indicates whether or not a given
component should <code>use strict</code>.</p>

</body>

</html>