From: Marius Gavrilescu Date: Fri, 24 Jan 2014 17:11:22 +0000 (+0200) Subject: Fix template patches glob pattern X-Git-Url: http://git.ieval.ro/?p=gruntmaster-page.git;a=commitdiff_plain;h=d1a026f7f722aa6223a256936420096eb221b2dd Fix template patches glob pattern --- diff --git a/lib/Gruntmaster/Page/Base.pm b/lib/Gruntmaster/Page/Base.pm index 7fa1497..b0b4c57 100644 --- a/lib/Gruntmaster/Page/Base.pm +++ b/lib/Gruntmaster/Page/Base.pm @@ -62,7 +62,7 @@ sub patch_templates { my $root = $ENV{GRUNTMASTER_TEMPLATE_ROOT} or return; my ($templates, $name) = @_; my %out = %$templates; - for (<$root/$name*>) { + for (<$root/$name.*>) { m/\.(.+)$/; $out{$1} = read_file $_ }