File: SVN-Web.psgi

package info (click to toggle)
libsvn-web-perl 0.63-4
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid, trixie
  • size: 736 kB
  • sloc: perl: 1,987; sh: 73; makefile: 11
file content (22 lines) | stat: -rw-r--r-- 378 bytes parent folder | download | duplicates (4)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
use SVN::Web;

# load config
SVN::Web::load_config('config.yaml');

my $handler = sub { SVN::Web->run_psgi(@_) };

# uncomment this __END__ if you dont want to have plack deliver /css
#__END__

use Plack::Builder;
use Plack::App::Directory;

my $css = Plack::App::Directory->new({ root => './css' })->to_app;

builder {

    mount '/css' => $css,

    mount '/' => $handler,

}