X-Git-Url: http://git.ieval.ro/?a=blobdiff_plain;f=lib%2FGruntmaster%2FPage%2FBase.pm;h=475be80d6952521e4d0fc96c6c82881913b64764;hb=16aa291dc49dceda7e612ed7eb2745036790d81c;hp=6ced6145a68eff7367d87293f4963258fa861985;hpb=fdbf59e5def9cbb4e1c0749f819ba8d946c37725;p=gruntmaster-page.git diff --git a/lib/Gruntmaster/Page/Base.pm b/lib/Gruntmaster/Page/Base.pm index 6ced614..475be80 100644 --- a/lib/Gruntmaster/Page/Base.pm +++ b/lib/Gruntmaster/Page/Base.pm @@ -92,6 +92,7 @@ sub vary { '' } sub max_age { 60 } sub variants { + return [] unless exists $templates{$_[0]}; [ map { [ $_, 1, 'text/html', undef, undef, $_, undef ]} keys $templates{$_[0]} ] }