package Maypole::Components;
-use base 'Maypole';
use strict;
use warnings;
use URI;
use URI::QueryParam;
+our @ISA = qw(Maypole);
+
sub new {
- my ($class,$r, $path) = @_;
+ my ($class,$r) = @_;
my $self = bless { config => $r->config, parent => $r }, $class;
}
sub handler {
my $self = shift;
+ my $path = shift;
my $url = URI->new($path);
$self->{path} = $url->path;
$self->parse_path;