Just use a regular perl.
for my $path (qw( /css /static /images /js )) {
mount $path => builder {
…
}
}
On Mon, Aug 22, 2016 at 7:38 PM ivo welch wrote:
>
> this is just an inquiry for whether there is some syntactic sugar here. I
> have an app in mount "/", plus a few lines like:
>
>
this is just an inquiry for whether there is some syntactic sugar here. I
have an app in mount "/", plus a few lines like:
mount "/css" => builder {
enable 'ConditionalGET';
enable 'ETag', file_etag => [qw/inode mtime size/], ;
enable 'ContentLength';
Plack::App::File->new(roo