------------------------------------------------------------------- WebGUI is Copyright 2001-2009 Plain Black Corporation. ------------------------------------------------------------------- Please read the legal notices (docs/legal.txt) and the license (docs/license.txt) that came with this distribution before using this software. ------------------------------------------------------------------- http://www.plainblack.com info@plainblack.com -------------------------------------------------------------------
WebGUI::URL::PSGI
version 0.2
Mount PSGI apps inside of WebGUI
"urlHandlers" : [ { "^/extras" : "WebGUI::URL::PassThru" }, #... { ".*" : "WebGUI::URL::PSGI" }, { ".*" : "WebGUI::URL::Content" } ], "psgi" : { '/foo' : '/path/to.psgi', }
Put this url handler somewhere before Content in your urlHandlers array and include a psgi section in your config file. The psgi section should contain a map of url prefixes to psgi file paths. PSGI applications are loaded via Plack::Util::load_psgi, and behave exactly as the would under plackup.
The PSGI environment will contain a wgSession key containing a valid WebGUI session.
To install WebGUI::URL::PSGI, copy and paste the appropriate command in to your terminal.
cpanm
cpanm WebGUI::URL::PSGI
CPAN shell
perl -MCPAN -e shell install WebGUI::URL::PSGI
For more information on module installation, please visit the detailed CPAN module installation guide.