Difference between revisions of "Freeside:3:Documentation:Developer/FS/Mason"
From Freeside
m (Edit via perl MediaWiki framework (1.13)) |
(No difference)
|
Latest revision as of 20:05, 27 June 2012
NAME
FS::Mason - Initialize the Mason environment
SYNOPSIS
use FS::Mason qw( mason_interps ); my( $fs_interp, $rt_interp ) = mason_interps('apache'); #OR my( $fs_interp, $rt_interp ) = mason_interps('standalone'); #XXX name?
DESCRIPTION
Initializes the Mason environment, loads all Freeside and RT libraries, etc.
SUBROUTINE
- mason_interps [ MODE [ OPTION => VALUE ... ] ]
- Returns a list consisting of two HTML::Mason::Interp objects, the first for Freeside pages, and the second for RT pages.
- MODE can be 'apache' or 'standalone'. If not specified, defaults to 'apache'.
- Options and values can be passed following mode. Currently available options are:
- outbuf should be set to a scalar reference in standalone mode.
BUGS
Lurking in the darkness...
SEE ALSO
HTML::Mason, FS, RT