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::ASP::Role - Catalyst Role to plug-in the ASP View

SYNOPSIS

  package MyApp;

  use Moose;
  use Catalyst;
  extends 'Catalyst';

  with 'CatalystX::ASP::Role';

DESCRIPTION

Compose this role in your main application class. This will inject the ASP View as View component in your app called 'ASP', accessible via $c->view('ASP'). It will also add a DispatchType which will direct all requests with .asp extension to the View.

METHODS

before 'setup_components'

Inject CatalystX::ASP::View component as a View for your app

after 'setup_dispatcher'

Load CatalystX::ASP::Dispatcher as a DispatchType for your app

SEE ALSO