1HTML::Mason::PSGIHandleUrs(e3r)Contributed Perl DocumentHaTtMiLo:n:Mason::PSGIHandler(3)
2
3
4

NAME

6       HTML::Mason::PSGIHandler - PSGI handler for HTML::Mason
7

SYNOPSIS

9         # app.psgi
10         use HTML::Mason::PSGIHandler;
11
12         my $h = HTML::Mason::PSGIHandler->new(
13             comp_root => "/path/to/doc_root", # required
14         );
15
16         my $handler = sub {
17             my $env = shift;
18             $h->handle_psgi($env);
19         };
20

DESCRIPTION

22       HTML::Mason::PSGIHandler is a PSGI handler for HTML::Mason. It's based
23       on HTML::Mason::CGIHandler and allows you to process Mason templates on
24       any web servers that support PSGI.
25

METHODS

as_psgi

28       This method returns a subroutine to be used as a PSGI application.
29
30       In other words, these are equivalent:
31
32         my $app = sub {
33           my $env = shift;
34           $h->handle_psgi($env);
35         };
36
37         my $app = $h->as_psgi;
38
39   new_psgi
40         mount '/foo' => HTML::Mason::PSGIHandler->new_psgi( ... );
41
42       This method combines "new" and "as_psgi" to immediately return a
43       subroutine that can be used as a PSGI application.  It's useful for
44       using inline with Plack::Builder.
45

SUPPORT

47       •   Git Repository
48
49           The latest code is available from the git repository at
50           <http://github.com/abh/HTML-Mason-PSGIHandler>.
51
52           To send patches, make a fork on github and send a pull request.
53
54       •   Bugs
55
56           Please report bugs at
57           <http://github.com/abh/HTML-Mason-PSGIHandler/issues>.
58

AUTHORS

60       Ask Bjørn Hansen <miyagawa@bulknews.net>, Ricardo Signes
61       <rjbs@cpan.org>, Tatsuhiko Miyagawa <miyagawa@bulknews.net>, Ruslan
62       Zakirov <ruz@bestpractical.com>.
63

LICENSE

65       This library is free software; you can redistribute it and/or modify it
66       under the same terms as Perl itself.
67

SEE ALSO

69       CGI::PSGI Plack PSGI HTML::Mason::CGIHandler
70
71
72
73perl v5.36.0                      2023-01-20       HTML::Mason::PSGIHandler(3)
Impressum