Skip to content


Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
branch: stackato
Fetching contributors…

Cannot retrieve contributors at this time

executable file 26 lines (19 sloc) 0.486 kb
use CGI::Application::PSGI;
use Encode;
use Plack::Builder;
our $x;
BEGIN { $x = `pwd`; chomp $x; }
use Rubric::Config qq($x/rubric.yml);
use Rubric::WebApp;
my $handler = sub {
my $env = shift;
my $app = Rubric::WebApp->new({ QUERY => CGI::PSGI->new($env) });
my $res = CGI::Application::PSGI->run($app);
$res->[2][0] = encode('utf-8', $res->[2][0]);
return $res;
builder {
enable 'Plack::Middleware::ContentLength';
Jump to Line
Something went wrong with that request. Please try again.