X-Git-Url: http://git.ieval.ro/?a=blobdiff_plain;f=lib%2FGruntmaster%2FPage%2FBase.pm;h=5b93f20992e00411b7d981f0af15edfc32a1e7c6;hb=0b282e58119cc0dbce678ef56eab20cc352557b5;hp=7fa14970be31f20d32d6c0445e21edbfca22aa60;hpb=bb95f538bf263c0294d87cfb90d58c66117b9aab;p=plack-app-gruntmaster.git diff --git a/lib/Gruntmaster/Page/Base.pm b/lib/Gruntmaster/Page/Base.pm index 7fa1497..5b93f20 100644 --- a/lib/Gruntmaster/Page/Base.pm +++ b/lib/Gruntmaster/Page/Base.pm @@ -59,10 +59,10 @@ HTML ); sub patch_templates { - my $root = $ENV{GRUNTMASTER_TEMPLATE_ROOT} or return; + my $root = $ENV{GRUNTMASTER_TEMPLATE_ROOT} or return %{$_[0]}; my ($templates, $name) = @_; my %out = %$templates; - for (<$root/$name*>) { + for (<$root/$name.*>) { m/\.(.+)$/; $out{$1} = read_file $_ }