hkoba / yatt_lite

YATT::Lite - Template with "use strict"
Other
5 stars 0 forks source link

Allow *.ydo actions to return PSGI tuple #211

Closed hkoba closed 6 months ago

hkoba commented 2 years ago

To make *.ydo action more PSGI friendly.

After

return sub {
   my ($this, $CON) = @_;
   my $env = $CON->env;
   # ...
   return [403, [], ["Forbidden!"]];
};

Before

return sub {
   my ($this, $CON) = @_;
   $this->YATT->raise_psgi_error(403, "Forbidden");
};