File: SVN-Web.psgi

package info (click to toggle)
libsvn-web-perl 0.63-2
  • links: PTS
  • area: main
  • in suites: jessie, jessie-kfreebsd
  • size: 668 kB
  • ctags: 105
  • sloc: perl: 1,958; sh: 73; makefile: 4
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,

}