From 223531e3cccde29ce18daeab5990aff6b14cfc88 Mon Sep 17 00:00:00 2001 From: Alex 'AdUser' Z Date: Sun, 3 Jan 2016 17:36:05 +1000 Subject: [PATCH] * styles & scripts --- templates/layouts/default.html.ep | 10 +++++----- templates/zerobin/view.html.ep | 2 +- 2 files changed, 6 insertions(+), 6 deletions(-) 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') %>