Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
branch: master
Fetching contributors…

Cannot retrieve contributors at this time

48 lines (42 sloc) 1.088 kB
use strict;
use Plack::Builder;
use Plack::App::File;
use DocLife::Pod;
use DocLife::Markdown;
use App::MarkdownBinder;
use App::MarkdownDiary;
my $pod_app = DocLife::Pod->new(
root => '../lib',
base_url => '/pod/'
);
my $doc_app = DocLife::Markdown->new(
root => './doc',
suffix => '.md',
base_url => '/doc/'
);
my $note_app = App::MarkdownBinder->new(
root => './doc',
suffix => '.md',
base_url => '/note/',
title => 'App::MarkdownBinder',
top => 'README'
);
my $blog_app = App::MarkdownDiary->new(
root => './blog',
suffix => '.md',
base_url => '/blog/',
title => 'App::MarkdownDiary',
footer => '© ',
rss_url => 'http://example.com'
);
builder {
enable 'Static',
path => qr!^/static/!, root => './htdocs/';
enable 'Static',
path => qr!^/(?:favicon.ico|robots.txt)$!, root => './htdocs/';
mount '/pod' => $pod_app;
mount '/doc' => $doc_app;
mount '/note' => $note_app;
mount '/blog' => $blog_app;
mount '/' => Plack::App::File->new(file => './htdocs/index.html');
};
Jump to Line
Something went wrong with that request. Please try again.