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

use Moose;
use namespace::autoclean;

BEGIN { extends 'Catalyst::View::SVG::TT::Graph'; }
#with 'Catalyst::Component::InstancePerContext';

=cut

sub build_per_context_instance{
    my ( $c, $self, $type, %args ) = @_;
    $class = "SVG::TT::Graph::" . ucfirst($type);

    return $class->new();
}

=cut

1;