GSP
Quick Navigator

Search Site

Unix VPS
A - Starter
B - Basic
C - Preferred
D - Commercial
MPS - Dedicated
Previous VPSs
* Sign Up! *

Support
Contact Us
Online Help
Handbooks
Domain Status
Man Pages

FAQ
Virtual Servers
Pricing
Billing
Technical

Network
Facilities
Connectivity
Topology Map

Miscellaneous
Server Agreement
Year 2038
Credits
 

USA Flag

 

 

Man Pages
HTML::Mason::PSGIHandler(3) User Contributed Perl Documentation HTML::Mason::PSGIHandler(3)

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

  # 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);
  };

HTML::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.

This 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;

  mount '/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.

  • Git Repository

    The latest code is available from the git repository at <http://github.com/abh/HTML-Mason-PSGIHandler>.

    To send patches, make a fork on github and send a pull request.

  • Bugs

    Please report bugs at <http://github.com/abh/HTML-Mason-PSGIHandler/issues>.

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

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

CGI::PSGI Plack PSGI HTML::Mason::CGIHandler
2013-09-13 perl v5.32.1

Search for    or go to Top of page |  Section 3 |  Main Index

Powered by GSP Visit the GSP FreeBSD Man Page Interface.
Output converted with ManDoc.