% my @styles = qw(); % push @styles, split(/\s+/, stash('styles') || ''); % % foreach my $style (@styles) { <%= stylesheet "/theme/css/$style.css" %> % }
%= content
% my @scripts = qw(jquery); % push @scripts, split(/\s+/, stash('scripts') || ''); % push @scripts, 'main'; % % foreach my $script (@scripts) { <%= javascript "/theme/js/$script.js" %> % }