From: Matt S Trout Date: Thu, 12 Nov 2009 17:03:25 +0000 (+0000) Subject: move layout file X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?a=commitdiff_plain;h=9d431a07b2debe6e7c2dab36f54c254e215fc3ef;p=sdlgit%2FSDL-Site.git move layout file --- diff --git a/cgi-bin/sdl.cgi b/cgi-bin/sdl.cgi index 4e1d4c8..5730285 100755 --- a/cgi-bin/sdl.cgi +++ b/cgi-bin/sdl.cgi @@ -11,7 +11,8 @@ package SDL_Perl::WebSite; use HTML::Zoom; default_config( - pages_dir => $FindBin::RealBin.'/pages', + pages_dir => $FindBin::RealBin.'/../pages', + layout_file => $FindBin::RealBin.'/../layout.html', ); sub page { @@ -48,7 +49,7 @@ sub layout_zoom { sub _layout_html { my $self = shift; - my $file = $self->config->{pages_dir}.'/index.html'; + my $file = $self->config->{layout_file}; if (-f $file) { return do { local(@ARGV, $/) = ($file); <> } } else { diff --git a/pages/index.html b/layout.html similarity index 100% rename from pages/index.html rename to layout.html