X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?a=blobdiff_plain;f=lib%2FGitalist%2FController%2FRoot.pm;h=7b921f89281b3f141c6b161b78396d771b39c1d8;hb=e1a23af1e0fa1ee2aa13ba3055c258e559ee4f93;hp=ddcc83a80cd8c3d5c981a17051733ae8526e09db;hpb=f41fc74106e51d8055871cacdc1459be4f61f980;p=catagits%2FGitalist.git diff --git a/lib/Gitalist/Controller/Root.pm b/lib/Gitalist/Controller/Root.pm index ddcc83a..7b921f8 100644 --- a/lib/Gitalist/Controller/Root.pm +++ b/lib/Gitalist/Controller/Root.pm @@ -22,8 +22,7 @@ sub index : Chained('base') PathPart('') Args(0) { sub css : Chained('/root') PathPart('core.css') Args(0) { my ( $self, $c ) = @_; - $c->response->content_type('text/css'); - $c->stash(template => 'static/css/core.css'); + $c->stash( template => 'static/css/core.css', content_type => 'text/css' ); } sub base : Chained('/root') PathPart('') CaptureArgs(0) { @@ -92,7 +91,8 @@ __PACKAGE__->config( map { $_ => [qw/ View Default /] } qw( text/css text/html text/plain application/atom+xml application/rss+xml application/rss ) - } + }, + content_type_stash_key => 'content_type', ); __PACKAGE__->meta->make_immutable;