X-Git-Url: https://git.decadent.org.uk/gitweb/?a=blobdiff_plain;f=lib%2FMaypole.pm;h=c970d01c0de485f7bc4fa1f506f75d75a5682c2f;hb=427f0f2ec634f60fa90e60f5d3a048b6e1fc5f8b;hp=6656b9b20a2bb741dff627e4fbbed325345e1187;hpb=d4c604cd340f311044ce23c73c4321bf49553b36;p=maypole.git diff --git a/lib/Maypole.pm b/lib/Maypole.pm index 6656b9b..c970d01 100644 --- a/lib/Maypole.pm +++ b/lib/Maypole.pm @@ -381,13 +381,12 @@ sub new config => $class->config, }, $class; - $self->stash({}); - $self->params({}); - $self->query({}); - $self->template_args({}); - $self->args([]); - $self->objects([]); - + $self->stash({}); + $self->params({}); + $self->query({}); + $self->template_args({}); + $self->args([]); + $self->objects([]); return $self; } @@ -678,6 +677,20 @@ sub __call_process_view { return $status; } +=item warn + +$r->warn('its all gone pete tong'); + +Warn must be implemented by the backend, i.e. Apache::MVC +and warn to stderr or appropriate logfile. + +You can also over-ride this in your Maypole driver, should you +want to use something like Log::Log4perl instead. + +=cut + +sub warn { } + =item get_request You should only need to define this method if you are writing a new