![]() |
![]()
| ![]() |
![]()
NAMEHTML::Mason::PSGIHandler - PSGI handler for HTML::Mason SYNOPSIS# app.psgi use HTML::Mason::PSGIHandler; my $h = HTML::Mason::PSGIHandler->new( comp_root => "/path/to/doc_root", # required ); my $handler = sub { my $env = shift; $h->handle_psgi($env); }; DESCRIPTIONHTML::Mason::PSGIHandler is a PSGI handler for HTML::Mason. It's based on HTML::Mason::CGIHandler and allows you to process Mason templates on any web servers that support PSGI. METHODSas_psgiThis method returns a subroutine to be used as a PSGI application. In other words, these are equivalent: my $app = sub { my $env = shift; $h->handle_psgi($env); }; my $app = $h->as_psgi; new_psgimount '/foo' => HTML::Mason::PSGIHandler->new_psgi( ... ); This method combines "new" and "as_psgi" to immediately return a subroutine that can be used as a PSGI application. It's useful for using inline with Plack::Builder. SUPPORT
AUTHORSAsk Bjørn Hansen <miyagawa@bulknews.net>, Ricardo Signes <rjbs@cpan.org>, Tatsuhiko Miyagawa <miyagawa@bulknews.net>, Ruslan Zakirov <ruz@bestpractical.com>. LICENSEThis library is free software; you can redistribute it and/or modify it under the same terms as Perl itself. SEE ALSOCGI::PSGI Plack PSGI HTML::Mason::CGIHandler
|