diff --git a/templates/layouts/default.html.ep b/templates/layouts/default.html.ep index 83097b7..f77c1d4 100644 --- a/templates/layouts/default.html.ep +++ b/templates/layouts/default.html.ep @@ -7,13 +7,9 @@ <%= title %> - Linux во Владивостоке -% my @styles = qw(default); +% my @styles = qw(); % push @styles, split(/\s+/, stash('styles') || ''); % -% my @scripts = qw(jquery); -% push @scripts, split(/\s+/, stash('scripts') || ''); -% push @scripts, 'main'; -% % foreach my $style (@styles) { <%= stylesheet "/theme/css/$style.css" %> % } @@ -42,6 +38,10 @@ %= content +% my @scripts = qw(jquery); +% push @scripts, split(/\s+/, stash('scripts') || ''); +% push @scripts, 'main'; +% % foreach my $script (@scripts) { <%= javascript "/theme/js/$script.js" %> % } diff --git a/templates/zerobin/view.html.ep b/templates/zerobin/view.html.ep index 33c080b..1618e20 100644 --- a/templates/zerobin/view.html.ep +++ b/templates/zerobin/view.html.ep @@ -1,6 +1,6 @@ % layout 'default'; % title 'Zerobin -- View'; -% stash 'styles' => 'hljs zerobin'; +% stash 'styles' => 'hljs'; % stash 'scripts' => 'highlight'; % my $paste = (stash 'paste') || {};

<%= l('View paste') %>