X-Git-Url: http://git.ieval.ro/?p=gruntmaster-page.git;a=blobdiff_plain;f=lib%2FGruntmaster%2FPage%2FBase.pm;h=475be80d6952521e4d0fc96c6c82881913b64764;hp=6ced6145a68eff7367d87293f4963258fa861985;hb=16aa291dc49dceda7e612ed7eb2745036790d81c;hpb=ce37ae0ca1e9ca129b944b424c7fefde74c07134 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]} ] }