]> iEval git - plack-app-gruntmaster.git/blobdiff - lib/Gruntmaster/Page/Base.pm
Add database support for problem opening
[plack-app-gruntmaster.git] / lib / Gruntmaster / Page / Base.pm
index 7fa14970be31f20d32d6c0445e21edbfca22aa60..5b93f20992e00411b7d981f0af15edfc32a1e7c6 100644 (file)
@@ -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 $_
        }
This page took 0.019928 seconds and 4 git commands to generate.