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" %> +% }