The London Perl and Raku Workshop takes place on 26th Oct 2024. If your company depends on Perl, please consider sponsoring and/or attending.

NAME

CatalystX::Controller::Sugar::ActionPack::End - Alternative to C::A::RenderView

DESCRIPTION

This plugin should be injected into the Root controller, or a controller with namespace set to "" (empty string). It provides something similar to Catalyst::Action::RenderView.

DEPENDENCIES

CatalystX::Controller::Sugar::ActionPack::Error or an /error action.

ACTIONS

Private end

Will:

 1) Skip the whole process if
  *) Request method is HEAD
  *) A redirect response is in process
  *) Content body is set
 2) Check for internal errors.
  *) forward('/error', ['internal']) if so
 2) Set up stash('title'), unless already set
 3) Set res->content_type, unless already set up
  *) controller->{'default_content_type'} || 'text/html; charset=utf-8';
 3) Forward to a view. Either default view or stash('current_view')

LICENSE

AUTHOR

See CatalystX::Controller::Sugar::ActionPack.