Jifty::View::Mason::Handler - Handler for Mason requests inside of Jifty
Jifty controls all of the input and output from the Mason templating engine; this means that we cannot use the Mason's standard HTML::Mason::CGIHandler interface to interact with it.
Takes a number of key-value parameters; see HTML::Mason::Params. Defaults the out_method to "out_method", and the request_class to HTML::Mason::Request::Jifty (below). Finally, adds h and u escapes, which map to "escape_uri" and escape_utf8 respectively.
out_method
request_class
h
u
The default output method. Sets the content-type to text/html; charset=utf-8 unless a content type has already been set, and then sends a header if need be.
text/html; charset=utf-8
Does a css-busting but minimalist escaping of whatever html you're passing in.
Escapes URI component according to RFC2396
Takes a component path to render. Deals with setting up a global HTML::Mason::FakeApache and Request object, and calling the component.
The official source for request arguments is from the current Jifty::Request object.
Subclass of HTML::Mason::Request which is customised for Jifty's use.
Doesn't send headers if this is a subrequest (according to the current Jifty::Request).
Actually runs the component; in case no headers have been sent after running the component, and we're supposed to send headers, sends them.
Calls "redirect" in Jifty::Web.
To install Jifty, copy and paste the appropriate command in to your terminal.
cpanm
cpanm Jifty
CPAN shell
perl -MCPAN -e shell install Jifty
For more information on module installation, please visit the detailed CPAN module installation guide.