Freeside:1.9:Documentation:Developer/FS/Mason

From Freeside
< Freeside:1.9:Documentation:Developer‎ | FS
Revision as of 18:15, 6 February 2009 by Ivan (talk | contribs) (Edit via perl MediaWiki framework (1.13))

(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to: navigation, search

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 ]
Returns a list consisting of two HTML::Mason::Interp objects, the first for Freeside pages, and the second for RT pages.
  1. MODE can be 'apache' or 'standalone'. If not specified, defaults to 'apache'.

BUGS

Lurking in the darkness...

SEE ALSO

HTML::Mason, FS, RT