[Catalyst] Serving static content

Perrin Harkins perrin at elem.com
Thu Jun 9 20:22:00 CEST 2005


On Thu, 2005-06-09 at 17:31 +0100, Chisel Wright wrote:
> I'm a tad confused about some different behaviour between ap_server.pl
> and app_test.pl.
> 
> I have a tiny app with a comtroller Static.pm, containing a default
> method and a begin method:
> 
> sub default : Private {
>   my ( $self, $c ) = @_;
>   unless ($c->serve_static) {
>     $c->res->output('static content not found');
>   }
> }

May I ask why you're serving static content from Catalyst?  I know
there's a plugin, but I'm not sure why.  Is it so you can do some kind
of auth checking in Catalyst?

- Perrin




More information about the Catalyst mailing list