Re: multiple mounts in builder with same enables

2016-08-22 Thread Tatsuhiko Miyagawa
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: > >

multiple mounts in builder with same enables

2016-08-22 Thread ivo welch
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