miyagawa (owner)

Revisions

gist: 209612 Download_button fork
public
Description:
Jifty PSGI app, works to serve the index page (but nothing else)
Public Clone URL: git://gist.github.com/209612.git
Embed All Files: show embed
app.psgi #
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
use Jifty;
use CGI::PSGI;
 
Jifty->new();
 
my $handler = sub {
    my $env = shift;
 
    # Gross hack
    my @content;
    local *Jifty::View::out_method = sub {
        push @content, @_;
    };
 
    Jifty->handler->handle_request(cgi => CGI::PSGI->new($env));
 
    return [ 200, [ ], \@content ];
};