From 506cf086cca81e02a9654f9eb5feb5eed8bb379f Mon Sep 17 00:00:00 2001 From: Alex 'AdUser' Z Date: Sun, 3 Jan 2016 17:18:29 +1000 Subject: [PATCH] * update scripts --- templates/layouts/default.html.ep | 11 ++++++----- templates/zerobin/create.html.ep | 2 -- templates/zerobin/view.html.ep | 2 +- 3 files changed, 7 insertions(+), 8 deletions(-) diff --git a/templates/layouts/default.html.ep b/templates/layouts/default.html.ep index 782a53e..96bacab 100644 --- a/templates/layouts/default.html.ep +++ b/templates/layouts/default.html.ep @@ -7,18 +7,16 @@ <%= title %> - Linux во Владивостоке -% my @styles = (); +% my @styles = qw(default); % push @styles, split(/\s+/, stash('styles') || ''); % -% my @scripts = (); +% my @scripts = qw(jquery); % push @scripts, split(/\s+/, stash('scripts') || ''); +% push @scripts, 'main'; % % foreach my $style (@styles) { <%= stylesheet "/theme/css/$style.css" %> % } -% foreach my $script (@scripts) { - <%= javascript "/theme/js/$script.js" %> -% }
@@ -44,6 +42,9 @@ %= content
+% foreach my $script (@scripts) { + <%= javascript "/theme/js/$script.js" %> +% }