home *** CD-ROM | disk | FTP | other *** search
/ PC Professionell 2004 December / PCpro_2004_12.ISO / files / webserver / tsw / TSW_3.4.0.exe / Apache2 / perl / Params.pod < prev    next >
Encoding:
Text File  |  2003-12-12  |  27.4 KB  |  1,227 lines

  1. #
  2. # This documentation was automatically generated by the
  3. # make_params_pod.pl script in the release
  4. # directory of the CVS repository.
  5. #
  6. # Edit that script instead of this document.
  7. #
  8.  
  9. =head1 NAME
  10.  
  11. HTML::Mason::Params - Mason configuration parameters
  12.  
  13. =head1 DESCRIPTION
  14.  
  15. This document lists all of the Mason configuration parameters that are
  16. intended to be used by end users.
  17.  
  18. =head1 PERL AND APACHE NAMES
  19.  
  20. Each parameter has two names: a Perl version and an Apache version.
  21. The Perl version uses C<lowercase_with_underscores>, while the Apache
  22. version uses C<StudlyCaps> with a C<Mason> prefix. The conversion from
  23. one version to the other is otherwise very predictable. For example,
  24.  
  25. =over 4
  26.  
  27. =item *
  28.  
  29. C<autohandler_name> C<E<lt>--E<gt>> C<MasonAutohandlerName>
  30.  
  31. =item *
  32.  
  33. C<comp_root> C<E<lt>--E<gt>> C<MasonCompRoot>
  34.  
  35. =item *
  36.  
  37. C<data_cache_defaults> C<E<lt>--E<gt>> C<MasonDataCacheDefaults>
  38.  
  39. =back
  40.  
  41. =head2 Where Apache Names Are Used
  42.  
  43. The Apache parameter names are used in the Apache configuration file
  44. in an L<httpd-based configuration|HTML::Mason::Admin/BASIC
  45. CONFIGURATION VIA httpd.conf DIRECTIVES>.
  46.  
  47. =head2 Where Perl Names Are Used
  48.  
  49. The Perl parameter names are used from Perl code, i.e. anywhere other
  50. than the Apache configuration file. For example,
  51.  
  52. =over 4
  53.  
  54. =item *
  55.  
  56. In an L<custom wrapper-based configuraiton|HTML::Mason::Admin/ADVANCED
  57. CONFIGURATION>, you can pass most of these parameters to the
  58. L<ApacheHandler|HTML::Mason::ApacheHandler> constructor.
  59.  
  60. =item *
  61.  
  62. In a L<standalone Mason script|HTML::Mason::Admin/Using Mason from a
  63. standalone script>, you can pass most of these parameters to the
  64. L<Interp|HTML::Mason::Interp> constructor.
  65.  
  66. =item *
  67.  
  68. When launching a L<subrequest|HTML::Mason::Devel/Subrequests>, you can
  69. pass any of the C<HTML::Mason::Request> parameters to
  70. L<make_subrequest|HTML::Mason::Request/item_make_subrequest>.
  71.  
  72. =back
  73.  
  74. =head1 PARAMETERS
  75.  
  76.  
  77.  
  78. =head2 allow_globals
  79.  
  80. =over 4
  81.  
  82. =item * Perl name:           allow_globals
  83.  
  84. =item * Apache name:         MasonAllowGlobals
  85.  
  86. =item * Type in httpd.conf:  list
  87.  
  88. =item * Default:             []
  89.  
  90. =item * Belongs to:          L<HTML::Mason::Compiler|HTML::Mason::Compiler>
  91.  
  92.  
  93.  
  94.  
  95. =back
  96.  
  97. List of variable names, complete with prefix (C<$@%>), that you intend
  98. to use as globals in components.  Normally global variables are
  99. forbidden by C<strict>, but any variable mentioned in this list is
  100. granted a reprieve via a "use vars" statement. For example:
  101.  
  102.     allow_globals => [qw($DBH %session)]
  103.  
  104. In a mod_perl environment, C<$r> (the request object) is automatically
  105. added to this list.
  106.  
  107.  
  108. =head2 apache_status_title
  109.  
  110. =over 4
  111.  
  112. =item * Perl name:           apache_status_title
  113.  
  114. =item * Apache name:         MasonApacheStatusTitle
  115.  
  116. =item * Type in httpd.conf:  string
  117.  
  118. =item * Default:             HTML::Mason status
  119.  
  120. =item * Belongs to:          L<HTML::Mason::ApacheHandler|HTML::Mason::ApacheHandler>
  121.  
  122.  
  123.  
  124.  
  125. =back
  126.  
  127. Title that you want this ApacheHandler to appear as under
  128. Apache::Status.  Default is "HTML::Mason status".  This is useful if
  129. you create more than one ApacheHandler object and want them all
  130. visible via Apache::Status.
  131.  
  132.  
  133. =head2 args_method
  134.  
  135. =over 4
  136.  
  137. =item * Perl name:           args_method
  138.  
  139. =item * Apache name:         MasonArgsMethod
  140.  
  141. =item * Type in httpd.conf:  string
  142.  
  143. =item * Default:             mod_perl
  144.  
  145. =item * Belongs to:          L<HTML::Mason::ApacheHandler|HTML::Mason::ApacheHandler>
  146.  
  147.  
  148.  
  149.  
  150. =back
  151.  
  152. Method to use for unpacking GET and POST arguments. The valid options
  153. are 'CGI' and 'mod_perl'; these indicate that a C<CGI.pm> or
  154. C<Apache::Request> object (respectively) will be created for the
  155. purposes of argument handling.
  156.  
  157. 'mod_perl' is the default and requires that you have installed the
  158. C<Apache::Request> package.
  159.  
  160. If args_method is 'mod_perl', the C<$r> global is upgraded to an
  161. Apache::Request object. This object inherits all Apache methods and
  162. adds a few of its own, dealing with parameters and file uploads.  See
  163. C<Apache::Request> for more information.
  164.  
  165. If the args_method is 'CGI', the Mason request object (C<$m>) will have a
  166. method called C<cgi_object> available.  This method returns the CGI
  167. object used for argument processing.
  168.  
  169. While Mason will load C<Apache::Request> or C<CGI> as needed at runtime, it
  170. is recommended that you preload the relevant module either in your
  171. F<httpd.conf> or F<handler.pl> file, as this will save some memory.
  172.  
  173.  
  174. =head2 auto_send_headers
  175.  
  176. =over 4
  177.  
  178. =item * Perl name:           auto_send_headers
  179.  
  180. =item * Apache name:         MasonAutoSendHeaders
  181.  
  182. =item * Type in httpd.conf:  boolean
  183.  
  184. =item * Default:             1
  185.  
  186. =item * Belongs to:          C<HTML::Mason::Request::ApacheHandler>
  187.  
  188.  
  189.  
  190.  
  191. =back
  192.  
  193. True or false, default is true.  Indicates whether Mason should
  194. automatically send HTTP headers before sending content back to the
  195. client. If you set to false, you should call C<$r-E<gt>send_http_header>
  196. manually.
  197.  
  198. See the L<sending HTTP headers|HTML::Mason::Devel/sending HTTP headers> section of the developer's manual for more details about the automatic
  199. header feature.
  200.  
  201.  
  202. =head2 autoflush
  203.  
  204. =over 4
  205.  
  206. =item * Perl name:           autoflush
  207.  
  208. =item * Apache name:         MasonAutoflush
  209.  
  210. =item * Type in httpd.conf:  boolean
  211.  
  212. =item * Default:             0
  213.  
  214. =item * Belongs to:          L<HTML::Mason::Request|HTML::Mason::Request>
  215.  
  216.  
  217.  
  218.  
  219. =back
  220.  
  221. True or false, default is false. Indicates whether to flush the output buffer
  222. after every string is output. Turn on autoflush if you need to send partial
  223. output to the client, for example in a progress meter.
  224.  
  225.  
  226. =head2 autohandler_name
  227.  
  228. =over 4
  229.  
  230. =item * Perl name:           autohandler_name
  231.  
  232. =item * Apache name:         MasonAutohandlerName
  233.  
  234. =item * Type in httpd.conf:  string
  235.  
  236. =item * Default:             autohandler
  237.  
  238. =item * Belongs to:          L<HTML::Mason::Interp|HTML::Mason::Interp>
  239.  
  240.  
  241.  
  242.  
  243. =back
  244.  
  245. File name used for
  246. L<autohandlers|HTML::Mason::Devel/autohandlers>. Default is
  247. "autohandler".  If this is set to an empty string ("") then
  248. autohandlers are turned off entirely.
  249.  
  250.  
  251. =head2 buffer_class
  252.  
  253. =over 4
  254.  
  255. =item * Perl name:           buffer_class
  256.  
  257. =item * Apache name:         MasonBufferClass
  258.  
  259. =item * Type in httpd.conf:  string
  260.  
  261. =item * Default:             HTML::Mason::Buffer
  262.  
  263. =item * Belongs to:          L<HTML::Mason::Request|HTML::Mason::Request>
  264.  
  265.  
  266.  
  267.  
  268. =back
  269.  
  270. The class to use when creating buffers. Defaults to
  271. L<HTML::Mason::Buffer|HTML::Mason::Buffer>.
  272.  
  273.  
  274. =head2 code_cache_max_size
  275.  
  276. =over 4
  277.  
  278. =item * Perl name:           code_cache_max_size
  279.  
  280. =item * Apache name:         MasonCodeCacheMaxSize
  281.  
  282. =item * Type in httpd.conf:  string
  283.  
  284. =item * Default:             10485760
  285.  
  286. =item * Belongs to:          L<HTML::Mason::Interp|HTML::Mason::Interp>
  287.  
  288.  
  289.  
  290.  
  291. =back
  292.  
  293. Specifies the maximum size, in bytes, of the in-memory code cache
  294. where components are stored. Default is 10 MB. See the L<code cache|HTML::Mason::Admin/code cache> section of the administrator's manual
  295. for further details.
  296.  
  297.  
  298. =head2 comp_class
  299.  
  300. =over 4
  301.  
  302. =item * Perl name:           comp_class
  303.  
  304. =item * Apache name:         MasonCompClass
  305.  
  306. =item * Type in httpd.conf:  string
  307.  
  308. =item * Default:             HTML::Mason::Component
  309.  
  310. =item * Belongs to:          L<HTML::Mason::Compiler::ToObject|HTML::Mason::Compiler::ToObject>
  311.  
  312.  
  313.  
  314.  
  315. =back
  316.  
  317. The class into which component objects are blessed.  This defaults to
  318. L<HTML::Mason::Component|HTML::Mason::Component>.
  319.  
  320.  
  321. =head2 comp_root
  322.  
  323. =over 4
  324.  
  325. =item * Perl name:           comp_root
  326.  
  327. =item * Apache name:         MasonCompRoot
  328.  
  329. =item * Type in httpd.conf:  list
  330.  
  331. =item * Default:             Varies
  332.  
  333. =item * Belongs to:          C<HTML::Mason::Resolver::File::ApacheHandler>
  334.  
  335.  
  336.  
  337.  
  338. =back
  339.  
  340. The component root marks the top of your component hierarchy and
  341. defines how component paths are translated into real file paths. For
  342. example, if your component root is F</usr/local/httpd/docs>, a component
  343. path of F</products/index.html> translates to the file
  344. F</usr/local/httpd/docs/products/index.html>.
  345.  
  346. Under L<Apache|HTML::Mason::ApacheHandler> and
  347. L<CGI|HTML::Mason::CGIHandler>, comp_root defaults to the server's
  348. document root. In standalone mode comp_root defaults to the current
  349. working directory.
  350.  
  351. This parameter may be either a scalar or an array reference.  If it is
  352. a scalar, it should be a filesystem path indicating the component
  353. root. If it is an array reference, it should be of the following form:
  354.  
  355.  [ [ key1 => '/path/to/root' ],
  356.    [ key2 => '/path/to/other/root' ] ]
  357.  
  358. The "keys" for each path must be unique names and their "values" must
  359. be filesystem paths.  These paths will be searched in the provided
  360. order whenever a component path must be resolved to a filesystem path.
  361.  
  362. If no component root is specified, the current working directory is
  363. used.
  364.  
  365.  
  366. =head2 compiler_class
  367.  
  368. =over 4
  369.  
  370. =item * Perl name:           compiler_class
  371.  
  372. =item * Apache name:         MasonCompilerClass
  373.  
  374. =item * Type in httpd.conf:  string
  375.  
  376. =item * Default:             HTML::Mason::Compiler::ToObject
  377.  
  378. =item * Belongs to:          L<HTML::Mason::Interp|HTML::Mason::Interp>
  379.  
  380.  
  381.  
  382.  
  383. =back
  384.  
  385. The class to use when creating a compiler. Defaults to
  386. L<HTML::Mason::Compiler|HTML::Mason::Compiler>.
  387.  
  388.  
  389. =head2 current_time
  390.  
  391. =over 4
  392.  
  393. =item * Perl name:           current_time
  394.  
  395. =item * Apache name:         MasonCurrentTime
  396.  
  397. =item * Type in httpd.conf:  string
  398.  
  399. =item * Default:             real
  400.  
  401. =item * Belongs to:          L<HTML::Mason::Interp|HTML::Mason::Interp>
  402.  
  403.  
  404.  
  405.  
  406. =back
  407.  
  408. Interpreter's notion of the current time (deprecated).
  409.  
  410.  
  411. =head2 data_cache_api
  412.  
  413. =over 4
  414.  
  415. =item * Perl name:           data_cache_api
  416.  
  417. =item * Apache name:         MasonDataCacheApi
  418.  
  419. =item * Type in httpd.conf:  string
  420.  
  421. =item * Default:             1.1
  422.  
  423. =item * Belongs to:          L<HTML::Mason::Request|HTML::Mason::Request>
  424.  
  425.  
  426.  
  427.  
  428. =back
  429.  
  430. The C<$m-E<gt>cache> API to use. '1.1', the default, indicates the newer
  431. API L<documented in this manual|HTML::Mason::Request/item_cache>.
  432. '1.0' indicates the old API documented in 1.0x and earlier. This
  433. compatibility layer is provided as a convenience for users upgrading
  434. from older versions of Mason, but will not be supported indefinitely.
  435.  
  436.  
  437. =head2 data_cache_defaults
  438.  
  439. =over 4
  440.  
  441. =item * Perl name:           data_cache_defaults
  442.  
  443. =item * Apache name:         MasonDataCacheDefaults
  444.  
  445. =item * Type in httpd.conf:  hash_list
  446.  
  447. =item * Default:             None
  448.  
  449. =item * Belongs to:          L<HTML::Mason::Request|HTML::Mason::Request>
  450.  
  451.  
  452.  
  453.  
  454. =back
  455.  
  456. A hash reference of default options to use for the C<$m-E<gt>cache>
  457. command. For example, to use the C<MemoryCache> implementation
  458. by default,
  459.  
  460.     data_cache_defaults => {cache_class => 'MemoryCache'}
  461.  
  462. These settings are overriden by options given to particular
  463. C<$m-E<gt>cache> calls.
  464.  
  465.  
  466. =head2 data_dir
  467.  
  468. =over 4
  469.  
  470. =item * Perl name:           data_dir
  471.  
  472. =item * Apache name:         MasonDataDir
  473.  
  474. =item * Type in httpd.conf:  string
  475.  
  476. =item * Default:             None
  477.  
  478. =item * Belongs to:          L<HTML::Mason::Interp|HTML::Mason::Interp>
  479.  
  480.  
  481.  
  482.  
  483. =back
  484.  
  485. The data directory is a writable directory that Mason uses for various
  486. features and optimizations: for example, component object files and
  487. data cache files. Mason will create the directory on startup, if necessary, and set its
  488. permissions according to the web server User/Group.
  489.  
  490. Under L<Apache|HTML::Mason::ApacheHandler>, data_dir defaults to a
  491. directory called "mason" under the Apache server root. You will
  492. need to change this on certain systems that assign a high-level
  493. server root such as F</usr>!
  494.  
  495. In non-Apache environments, data_dir has no default. If it is left
  496. unspecified, Mason will not use L<object files|HTML::Mason::Admin/object files>, and the default
  497. L<data cache class|HTML::Mason::Request/item_cache> will be
  498. C<MemoryCache> instead of C<FileCache>.
  499.  
  500.  
  501. =head2 decline_dirs
  502.  
  503. =over 4
  504.  
  505. =item * Perl name:           decline_dirs
  506.  
  507. =item * Apache name:         MasonDeclineDirs
  508.  
  509. =item * Type in httpd.conf:  boolean
  510.  
  511. =item * Default:             1
  512.  
  513. =item * Belongs to:          L<HTML::Mason::ApacheHandler|HTML::Mason::ApacheHandler>
  514.  
  515.  
  516.  
  517.  
  518. =back
  519.  
  520. True or false, default is true. Indicates whether Mason should decline
  521. directory requests, leaving Apache to serve up a directory index or a
  522. C<FORBIDDEN> error as appropriate. See the L<allowing directory requests|HTML::Mason::Admin/allowing directory requests> section of the administrator's manual
  523. for more information about handling directories with Mason.
  524.  
  525.  
  526. =head2 default_escape_flags
  527.  
  528. =over 4
  529.  
  530. =item * Perl name:           default_escape_flags
  531.  
  532. =item * Apache name:         MasonDefaultEscapeFlags
  533.  
  534. =item * Type in httpd.conf:  string
  535.  
  536. =item * Default:             []
  537.  
  538. =item * Belongs to:          L<HTML::Mason::Compiler|HTML::Mason::Compiler>
  539.  
  540.  
  541.  
  542.  
  543. =back
  544.  
  545. Escape flags to apply to all <% %> expressions by default. The current
  546. valid flags are
  547.  
  548.     h - escape for HTML ('<' => '<', etc.)
  549.     u - escape for URL (':' => '%3A', etc.)
  550.  
  551. The developer can override default escape flags on a per-expression
  552. basis; see the L<escaping expressions|HTML::Mason::Devel/escaping expressions> section of the developer's manual.
  553.  
  554. If you want to set I<multiple> flags as the default, this should be
  555. given as a reference to an array of flags.
  556.  
  557.  
  558. =head2 define_args_hash
  559.  
  560. =over 4
  561.  
  562. =item * Perl name:           define_args_hash
  563.  
  564. =item * Apache name:         MasonDefineArgsHash
  565.  
  566. =item * Type in httpd.conf:  string
  567.  
  568. =item * Default:             auto
  569.  
  570. =item * Belongs to:          L<HTML::Mason::Compiler::ToObject|HTML::Mason::Compiler::ToObject>
  571.  
  572.  
  573.  
  574.  
  575. =back
  576.  
  577. One of "always", "auto", or "never".  This determines whether or not
  578. an C<%ARGS> hash is created in components.  If it is set to "always",
  579. one is always defined.  If set to "never", it is never defined.
  580.  
  581. The default, "auto", will cause the hash to be defined only if some
  582. part of the component contains the string "ARGS".  This is somewhat
  583. crude, and may result in some false positives, but this is preferable
  584. to false negatives.
  585.  
  586. Not defining the args hash means that we can avoid copying component
  587. arguments, which can save memory and slightly improve execution speed.
  588.  
  589.  
  590. =head2 dhandler_name
  591.  
  592. =over 4
  593.  
  594. =item * Perl name:           dhandler_name
  595.  
  596. =item * Apache name:         MasonDhandlerName
  597.  
  598. =item * Type in httpd.conf:  string
  599.  
  600. =item * Default:             dhandler
  601.  
  602. =item * Belongs to:          L<HTML::Mason::Request|HTML::Mason::Request>
  603.  
  604.  
  605.  
  606.  
  607. =back
  608.  
  609. File name used for L<dhandlers|HTML::Mason::Devel/dhandlers>. Default
  610. is "dhandler".  If this is set to an empty string ("") then dhandlers
  611. are turned off entirely.
  612.  
  613.  
  614. =head2 error_format
  615.  
  616. =over 4
  617.  
  618. =item * Perl name:           error_format
  619.  
  620. =item * Apache name:         MasonErrorFormat
  621.  
  622. =item * Type in httpd.conf:  string
  623.  
  624. =item * Default:             Varies
  625.  
  626. =item * Belongs to:          L<HTML::Mason::Request|HTML::Mason::Request>
  627.  
  628.  
  629.  
  630.  
  631. =back
  632.  
  633. Indicates how errors are formatted. The built-in choices are
  634.  
  635. =over
  636.  
  637. =item *
  638.  
  639. I<brief> - just the error message with no trace information
  640.  
  641. =item *
  642.  
  643. I<text> - a multi-line text format
  644.  
  645. =item *
  646.  
  647. I<line> - a single-line text format, with different pieces of information separated by tabs (useful for log files)
  648.  
  649. =item *
  650.  
  651. I<html> - a fancy html format
  652.  
  653. =back
  654.  
  655. The default format under L<Apache|HTML::Mason::ApacheHandler> and
  656. L<CGI|HTML::Mason::CGIHandler> is either I<line> or I<html> depending
  657. on whether the error mode is I<fatal> or I<output>, respectively. The
  658. default for standalone mode is I<text>.
  659.  
  660. The formats correspond to C<HTML::Mason::Exception> methods named
  661. as_I<format>. You can define your own format by creating an
  662. appropriately named method; for example, to define an "xml" format,
  663. create a method C<HTML::Mason::Exception::as_xml> patterned after one of
  664. the built-in methods.
  665.  
  666.  
  667. =head2 error_mode
  668.  
  669. =over 4
  670.  
  671. =item * Perl name:           error_mode
  672.  
  673. =item * Apache name:         MasonErrorMode
  674.  
  675. =item * Type in httpd.conf:  string
  676.  
  677. =item * Default:             Varies
  678.  
  679. =item * Belongs to:          L<HTML::Mason::Request|HTML::Mason::Request>
  680.  
  681.  
  682.  
  683.  
  684. =back
  685.  
  686. Indicates how errors are returned to the caller.  The choices are
  687. I<fatal>, meaning die with the error, and I<output>, meaning output
  688. the error just like regular output.
  689.  
  690. The default under L<Apache|HTML::Mason::ApacheHandler> and
  691. L<CGI|HTML::Mason::CGIHandler> is I<output>, causing the error to be
  692. displayed in the browser.  The default for standalone mode is
  693. I<fatal>.
  694.  
  695.  
  696. =head2 escape_flags
  697.  
  698. =over 4
  699.  
  700. =item * Perl name:           escape_flags
  701.  
  702. =item * Apache name:         MasonEscapeFlags
  703.  
  704. =item * Type in httpd.conf:  hash_list
  705.  
  706. =item * Default:             None
  707.  
  708. =item * Belongs to:          L<HTML::Mason::Interp|HTML::Mason::Interp>
  709.  
  710.  
  711.  
  712.  
  713. =back
  714.  
  715. A hash reference of escape flags to set for this object.  See the
  716. section on the L<set_escape
  717. method|HTML::Mason::Interp/item_set_escape> for more details.
  718.  
  719.  
  720. =head2 ignore_warnings_expr
  721.  
  722. =over 4
  723.  
  724. =item * Perl name:           ignore_warnings_expr
  725.  
  726. =item * Apache name:         MasonIgnoreWarningsExpr
  727.  
  728. =item * Type in httpd.conf:  regex
  729.  
  730. =item * Default:             qr/Subroutine .* redefined/i
  731.  
  732. =item * Belongs to:          L<HTML::Mason::Interp|HTML::Mason::Interp>
  733.  
  734.  
  735.  
  736.  
  737. =back
  738.  
  739. Regular expression indicating which warnings to ignore when loading
  740. components. Any warning that is not ignored will prevent the
  741. component from being loaded and executed. For example:
  742.  
  743.     ignore_warnings_expr =>
  744.         'Global symbol.*requires explicit package'
  745.  
  746. If set to undef, all warnings are heeded. If set to '.', warnings
  747. are turned off completely as a specially optimized case.
  748.  
  749. By default, this is set to 'Subroutine .* redefined'.  This allows you
  750. to declare global subroutines inside <%once> sections and not receive
  751. an error when the component is reloaded.
  752.  
  753.  
  754. =head2 in_package
  755.  
  756. =over 4
  757.  
  758. =item * Perl name:           in_package
  759.  
  760. =item * Apache name:         MasonInPackage
  761.  
  762. =item * Type in httpd.conf:  string
  763.  
  764. =item * Default:             HTML::Mason::Commands
  765.  
  766. =item * Belongs to:          L<HTML::Mason::Compiler::ToObject|HTML::Mason::Compiler::ToObject>
  767.  
  768.  
  769.  
  770.  
  771. =back
  772.  
  773. This is the package in which a component's code is executed.  For
  774. historical reasons, this defaults to C<HTML::Mason::Commands>.
  775.  
  776.  
  777. =head2 interp_class
  778.  
  779. =over 4
  780.  
  781. =item * Perl name:           interp_class
  782.  
  783. =item * Apache name:         MasonInterpClass
  784.  
  785. =item * Type in httpd.conf:  string
  786.  
  787. =item * Default:             HTML::Mason::Interp
  788.  
  789. =item * Belongs to:          L<HTML::Mason::ApacheHandler|HTML::Mason::ApacheHandler>
  790.  
  791.  
  792.  
  793.  
  794. =back
  795.  
  796. The class to use when creating a interpreter. Defaults to
  797. L<HTML::Mason::Interp|HTML::Mason::Interp>.
  798.  
  799.  
  800. =head2 lexer_class
  801.  
  802. =over 4
  803.  
  804. =item * Perl name:           lexer_class
  805.  
  806. =item * Apache name:         MasonLexerClass
  807.  
  808. =item * Type in httpd.conf:  string
  809.  
  810. =item * Default:             HTML::Mason::Lexer
  811.  
  812. =item * Belongs to:          L<HTML::Mason::Compiler|HTML::Mason::Compiler>
  813.  
  814.  
  815.  
  816.  
  817. =back
  818.  
  819. The class to use when creating a lexer. Defaults to L<HTML::Mason::Lexer|HTML::Mason::Lexer>.
  820.  
  821.  
  822. =head2 max_recurse
  823.  
  824. =over 4
  825.  
  826. =item * Perl name:           max_recurse
  827.  
  828. =item * Apache name:         MasonMaxRecurse
  829.  
  830. =item * Type in httpd.conf:  string
  831.  
  832. =item * Default:             32
  833.  
  834. =item * Belongs to:          L<HTML::Mason::Request|HTML::Mason::Request>
  835.  
  836.  
  837.  
  838.  
  839. =back
  840.  
  841. The maximum recursion depth for the component stack, for the request
  842. stack, and for the inheritance stack. An error is signalled if the
  843. maximum is exceeded.  Default is 32.
  844.  
  845.  
  846. =head2 out_method
  847.  
  848. =over 4
  849.  
  850. =item * Perl name:           out_method
  851.  
  852. =item * Apache name:         MasonOutMethod
  853.  
  854. =item * Type in httpd.conf:  code
  855.  
  856. =item * Default:             Print to STDOUT
  857.  
  858. =item * Belongs to:          L<HTML::Mason::Request|HTML::Mason::Request>
  859.  
  860.  
  861.  
  862.  
  863. =back
  864.  
  865. Indicates where to send output. If out_method is a reference to a
  866. scalar, output is appended to the scalar.  If out_method is a
  867. reference to a subroutine, the subroutine is called with each output
  868. string. For example, to send output to a file called "mason.out":
  869.  
  870.     my $fh = new IO::File ">mason.out";
  871.     ...
  872.     out_method => sub { $fh->print($_[0]) }
  873.  
  874. By default, out_method prints to standard output. Under
  875. L<Apache|HTML::Mason::ApacheHandler>, standard output is
  876. redirected to C<< $r->print >>.
  877.  
  878.  
  879. =head2 postamble
  880.  
  881. =over 4
  882.  
  883. =item * Perl name:           postamble
  884.  
  885. =item * Apache name:         MasonPostamble
  886.  
  887. =item * Type in httpd.conf:  string
  888.  
  889. =item * Default:             None
  890.  
  891. =item * Belongs to:          L<HTML::Mason::Compiler::ToObject|HTML::Mason::Compiler::ToObject>
  892.  
  893.  
  894.  
  895.  
  896. =back
  897.  
  898. Text given for this parameter is placed at the end of each component. See also L<preamble|HTML::Mason::Params/preamble>.
  899.  
  900.  
  901. =head2 postprocess_perl
  902.  
  903. =over 4
  904.  
  905. =item * Perl name:           postprocess_perl
  906.  
  907. =item * Apache name:         MasonPostprocessPerl
  908.  
  909. =item * Type in httpd.conf:  code
  910.  
  911. =item * Default:             None
  912.  
  913. =item * Belongs to:          L<HTML::Mason::Compiler|HTML::Mason::Compiler>
  914.  
  915.  
  916.  
  917.  
  918. =back
  919.  
  920. Sub reference that is called to postprocess the Perl portion of a
  921. compiled component, just before it is assembled into its final
  922. subroutine form.  The sub is called with a single parameter, a scalar
  923. reference to the Perl portion of the component.  The sub is expected
  924. to process the string in-place. See also
  925. L<preprocess|HTML::Mason::Params/preprocess> and L<postprocess_text|HTML::Mason::Params/postprocess_text>.
  926.  
  927.  
  928. =head2 postprocess_text
  929.  
  930. =over 4
  931.  
  932. =item * Perl name:           postprocess_text
  933.  
  934. =item * Apache name:         MasonPostprocessText
  935.  
  936. =item * Type in httpd.conf:  code
  937.  
  938. =item * Default:             None
  939.  
  940. =item * Belongs to:          L<HTML::Mason::Compiler|HTML::Mason::Compiler>
  941.  
  942.  
  943.  
  944.  
  945. =back
  946.  
  947. Sub reference that is called to postprocess the text portion of a
  948. compiled component, just before it is assembled into its final
  949. subroutine form.  The sub is called with a single parameter, a scalar
  950. reference to the text portion of the component.  The sub is expected
  951. to process the string in-place. See also
  952. L<preprocess|HTML::Mason::Params/preprocess> and L<postprocess_perl|HTML::Mason::Params/postprocess_perl>.
  953.  
  954.  
  955. =head2 preamble
  956.  
  957. =over 4
  958.  
  959. =item * Perl name:           preamble
  960.  
  961. =item * Apache name:         MasonPreamble
  962.  
  963. =item * Type in httpd.conf:  string
  964.  
  965. =item * Default:             None
  966.  
  967. =item * Belongs to:          L<HTML::Mason::Compiler::ToObject|HTML::Mason::Compiler::ToObject>
  968.  
  969.  
  970.  
  971.  
  972. =back
  973.  
  974. Text given for this parameter is placed at the beginning of each component. See also L<postamble|HTML::Mason::Params/postamble>.
  975.  
  976.  
  977. =head2 preloads
  978.  
  979. =over 4
  980.  
  981. =item * Perl name:           preloads
  982.  
  983. =item * Apache name:         MasonPreloads
  984.  
  985. =item * Type in httpd.conf:  list
  986.  
  987. =item * Default:             None
  988.  
  989. =item * Belongs to:          L<HTML::Mason::Interp|HTML::Mason::Interp>
  990.  
  991.  
  992.  
  993.  
  994. =back
  995.  
  996. A list of component paths, optionally with glob wildcards, to load
  997. when the interpreter initializes. e.g.
  998.  
  999.     preloads => ['/foo/index.html','/bar/*.pl']
  1000.  
  1001. Default is the empty list.  For maximum performance, this should only
  1002. be used for components that are frequently viewed and rarely updated.
  1003. See the L<preloading components|HTML::Mason::Admin/preloading components> section of the administrator's manual for further details.
  1004.  
  1005. As mentioned in the developer's manual, a component's C<< <%once> >>
  1006. section is executed when it is loaded.  For preloaded components, this
  1007. means that this section will be executed before a Mason or Apache
  1008. request exist, so preloading a component that uses C<$m> or C<$r> in a
  1009. C<< <%once> >> section will fail.
  1010.  
  1011.  
  1012. =head2 preprocess
  1013.  
  1014. =over 4
  1015.  
  1016. =item * Perl name:           preprocess
  1017.  
  1018. =item * Apache name:         MasonPreprocess
  1019.  
  1020. =item * Type in httpd.conf:  code
  1021.  
  1022. =item * Default:             None
  1023.  
  1024. =item * Belongs to:          L<HTML::Mason::Compiler|HTML::Mason::Compiler>
  1025.  
  1026.  
  1027.  
  1028.  
  1029. =back
  1030.  
  1031. Sub reference that is called to preprocess each component before the compiler does
  1032. it's magic.  The sub is called with a single parameter, a scalar reference
  1033. to the script.  The sub is expected to process the script in-place.   This is
  1034. one way to extend the HTML::Mason syntax with new tags, etc., although a much
  1035. more flexible way is to subclass the Lexer or Compiler class. See also
  1036. L<postprocess_text|HTML::Mason::Params/postprocess_text> and L<postprocess_perl|HTML::Mason::Params/postprocess_perl>.
  1037.  
  1038.  
  1039. =head2 request_class
  1040.  
  1041. =over 4
  1042.  
  1043. =item * Perl name:           request_class
  1044.  
  1045. =item * Apache name:         MasonRequestClass
  1046.  
  1047. =item * Type in httpd.conf:  string
  1048.  
  1049. =item * Default:             HTML::Mason::Request
  1050.  
  1051. =item * Belongs to:          L<HTML::Mason::Interp|HTML::Mason::Interp>
  1052.  
  1053.  
  1054.  
  1055.  
  1056. =back
  1057.  
  1058. The class to use when creating requests. Defaults to
  1059. L<HTML::Mason::Request|HTML::Mason::Request>.
  1060.  
  1061.  
  1062. =head2 resolver_class
  1063.  
  1064. =over 4
  1065.  
  1066. =item * Perl name:           resolver_class
  1067.  
  1068. =item * Apache name:         MasonResolverClass
  1069.  
  1070. =item * Type in httpd.conf:  string
  1071.  
  1072. =item * Default:             HTML::Mason::Resolver::File
  1073.  
  1074. =item * Belongs to:          L<HTML::Mason::Interp|HTML::Mason::Interp>
  1075.  
  1076.  
  1077.  
  1078.  
  1079. =back
  1080.  
  1081. The class to use when creating a resolver. Defaults to
  1082. L<HTML::Mason::Resolver::File|HTML::Mason::Resolver::File>.
  1083.  
  1084.  
  1085. =head2 static_source
  1086.  
  1087. =over 4
  1088.  
  1089. =item * Perl name:           static_source
  1090.  
  1091. =item * Apache name:         MasonStaticSource
  1092.  
  1093. =item * Type in httpd.conf:  boolean
  1094.  
  1095. =item * Default:             0
  1096.  
  1097. =item * Belongs to:          L<HTML::Mason::Interp|HTML::Mason::Interp>
  1098.  
  1099.  
  1100.  
  1101.  
  1102. =back
  1103.  
  1104. True or false, default is false. When false, Mason checks the
  1105. timestamp of the component source file each time the component is used
  1106. to see if it has changed. This provides the instant feedback for
  1107. source changes that is expected for development.  However it does
  1108. entail a file stat for each component executed.
  1109.  
  1110. When true, Mason assumes that the component source tree is unchanging:
  1111. it will not check component source files to determine if the memory
  1112. cache or object file has expired.  This can save many file stats per
  1113. request. However, in order to get Mason to recognize a component
  1114. source change, you must remove object files and restart the server (so
  1115. as to clear the memory cache).
  1116.  
  1117. Use this feature for live sites where performance is crucial and
  1118. where updates are infrequent and well-controlled.
  1119.  
  1120.  
  1121. =head2 subcomp_class
  1122.  
  1123. =over 4
  1124.  
  1125. =item * Perl name:           subcomp_class
  1126.  
  1127. =item * Apache name:         MasonSubcompClass
  1128.  
  1129. =item * Type in httpd.conf:  string
  1130.  
  1131. =item * Default:             HTML::Mason::Component::Subcomponent
  1132.  
  1133. =item * Belongs to:          L<HTML::Mason::Compiler::ToObject|HTML::Mason::Compiler::ToObject>
  1134.  
  1135.  
  1136.  
  1137.  
  1138. =back
  1139.  
  1140. The class into which subcomponent objects are blessed.  This defaults
  1141. to L<HTML::Mason::Component::Subcomponent|HTML::Mason::Component::Subcomponent>.
  1142.  
  1143.  
  1144. =head2 use_object_files
  1145.  
  1146. =over 4
  1147.  
  1148. =item * Perl name:           use_object_files
  1149.  
  1150. =item * Apache name:         MasonUseObjectFiles
  1151.  
  1152. =item * Type in httpd.conf:  boolean
  1153.  
  1154. =item * Default:             1
  1155.  
  1156. =item * Belongs to:          L<HTML::Mason::Interp|HTML::Mason::Interp>
  1157.  
  1158.  
  1159.  
  1160.  
  1161. =back
  1162.  
  1163. True or false, default is true.  Specifies whether Mason creates
  1164. object files to save the results of component parsing. You may want to
  1165. turn off object files for disk space reasons, but otherwise this
  1166. should be left alone.
  1167.  
  1168.  
  1169. =head2 use_source_line_numbers
  1170.  
  1171. =over 4
  1172.  
  1173. =item * Perl name:           use_source_line_numbers
  1174.  
  1175. =item * Apache name:         MasonUseSourceLineNumbers
  1176.  
  1177. =item * Type in httpd.conf:  boolean
  1178.  
  1179. =item * Default:             1
  1180.  
  1181. =item * Belongs to:          L<HTML::Mason::Compiler|HTML::Mason::Compiler>
  1182.  
  1183.  
  1184.  
  1185.  
  1186. =back
  1187.  
  1188. True or false, default is true. Indicates whether component line
  1189. numbers that appear in error messages, stack traces, etc. are in terms
  1190. of the source file instead of the object file. Mason does this by
  1191. inserting '#line' directives into compiled components.  While source
  1192. line numbers are more immediately helpful, object file line numbers
  1193. may be more appropriate for in-depth debugging sessions.
  1194.  
  1195.  
  1196. =head2 use_strict
  1197.  
  1198. =over 4
  1199.  
  1200. =item * Perl name:           use_strict
  1201.  
  1202. =item * Apache name:         MasonUseStrict
  1203.  
  1204. =item * Type in httpd.conf:  boolean
  1205.  
  1206. =item * Default:             1
  1207.  
  1208. =item * Belongs to:          L<HTML::Mason::Compiler::ToObject|HTML::Mason::Compiler::ToObject>
  1209.  
  1210.  
  1211.  
  1212.  
  1213. =back
  1214.  
  1215. True or false, default is true. Indicates whether or not a given
  1216. component should C<use strict>.
  1217.  
  1218.  
  1219.  
  1220.  
  1221.  
  1222.  
  1223.  
  1224.  
  1225.  
  1226.  
  1227.