X-Git-Url: https://git.decadent.org.uk/gitweb/?p=maypole.git;a=blobdiff_plain;f=lib%2FMaypole.pm;h=6b40b7052b5ee5e039a61c90c283b3a86340ec21;hp=bc41335cd5758aa76565f18c8670f29f2f5acff9;hb=650450caf089b65793c46ff38aa696337f4005df;hpb=2c5d6782f89dc1532398b1b79c8f67b982c758ac diff --git a/lib/Maypole.pm b/lib/Maypole.pm index bc41335..6b40b70 100644 --- a/lib/Maypole.pm +++ b/lib/Maypole.pm @@ -638,13 +638,13 @@ sub __setup_plain_template # It's just a plain template $self->model_class(undef); - # FIXME: this is likely to be redundant and is definately causing problems. - - my $path = $self->path; - $path =~ s{/$}{}; # De-absolutify - $self->path($path); - - $self->template($self->path); + unless ($self->template) { + # FIXME: this is likely to be redundant and is definately causing problems. + my $path = $self->path; + $path =~ s{/$}{}; # De-absolutify + $self->path($path); + $self->template($self->path); + } } # The model has been processed or skipped (if is_applicable returned false),