load columns items: % foreach my $show ( glob 'templates/data/items/*.html.ep' ) { % $show =~ s{^.+/([^/]+)\.html\.ep$}{$1}; % my $class = session('show') eq $show ? 'class=active' : ''; ><%= $show %> % } % if ( my $path = session('save_path') ) { save % } % if ( $self->can('_export_path') && glob $self->_export_path('*') ) { export % } edits changes