From 573b86147c3b6e322838b96162fdf462f7adbbfb Mon Sep 17 00:00:00 2001 From: "Alex \"AdUser\" Z" Date: Tue, 28 Oct 2014 13:27:32 +1000 Subject: [PATCH] * change layout --- templates/layouts/default.html.ep | 28 +++++++++++++++------------- 1 file changed, 15 insertions(+), 13 deletions(-) diff --git a/templates/layouts/default.html.ep b/templates/layouts/default.html.ep index 22247c8..8d47685 100644 --- a/templates/layouts/default.html.ep +++ b/templates/layouts/default.html.ep @@ -1,16 +1,18 @@ +% my @styles = qw(monobook.screen monobook.print); +% push @styles, split(/\s+/, stash('styles')); +% my @scripts = (); +% push @scripts, split(/\s+/, stash('scripts')); <%= title %> - Linux во Владивостоке - + - -%= include 'includes/ie-hacks', format => 'html'; -% foreach my $style (split /\s+/, stash('styles')) { +% foreach my $style (@styles) { <%= stylesheet "/css/$style.css" %> % } -% foreach my $script (split /\s+/, stash('scripts')) { +% foreach my $script (@scripts) { <%= javascript "/js/$script.js" %> % } @@ -24,7 +26,7 @@
- <%= content %> +%= content
@@ -40,7 +42,7 @@ @@ -51,12 +53,12 @@