NAME

CatalystX::ASP::View - Catalyst View for processing ASP scripts

SYNOPSIS

package MyApp::Controller::Foo;

sub 'asp' : Regex('\.asp$') {
  my ($self, $c, @args) = @_;
  $c->forward( $c->view( 'ASP' ), \@args );
}

DESCRIPTION

This is the Catalyst View to handle ASP scripts. Given a $path to the ASP script, this will render the ASP script and populate $c->response with the computed headers and body.

METHODS

$self->process($c, @args)

Takes a $path or guesses base off $c->request->path. After ASP renders the output, this will populate $c->response accordingly

$self->render($c, $path)

This does the bulk work of ASP processing. First parse file, the compile. During execution, kick off any hooks configured. Finally, properly handle errors, passing through $c->detach if called as a result of $Response->Redirect or $Response->End if called in ASP script.

SEE ALSO