% if (@images) { <& thumbnail_table.mas, images => \@images, gallery => $gallery, &> % } <%args> $gallery <%init> my @images = $gallery->images; my @subs = $gallery->subgalleries;