in reply to Serving static files with Plack
My mistake was thinking PM::Static behaved the same as PM::Pod - when i looked at the source of both i saw that PM::Pod was doing the substitution itself:enable "Static", path => sub { s!^/static!! }, root => './html-files', ;
Plack::Middleware::Pod my $r = $self->root || './'; $path =~ s!$path_match!$r!;
|
|---|