Skip to content
This repository

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP

Document Viewer written in Perl, to run under Plack.

branch: master

Fetching latest commit…

Octocat-spinner-32-eaf2f5

Cannot retrieve the latest commit at this time

Octocat-spinner-32 lib
Octocat-spinner-32 t
Octocat-spinner-32 .gitignore
Octocat-spinner-32 Build.PL
Octocat-spinner-32 Changes
Octocat-spinner-32 LICENSE
Octocat-spinner-32 META.json
Octocat-spinner-32 README.md
Octocat-spinner-32 cpanfile
Octocat-spinner-32 minil.toml
README.md

Build Status

NAME

DocLife - Document Viewer written in Perl, to run under Plack.

SYNOPSIS

# app.psgi
use DocLife::Pod;
DocLife::Pod->new( root => "./lib" );

# one-liner
plackup -MDocLife::Pod -e 'DocLife::Pod->new( root => "./lib" )->to_app'

How To Mount

need base_url option.

# app.psgi
use Plack::Builder;
use DocLife::Pod;
use DocLife::Markdown;

my $pod_app = DocLife::Pod->new(
    root => '../lib',
    base_url => '/pod/'
);

my $doc_app = DocLife::Markdown->new(
    root => './doc',
    suffix => '.md',
    base_url => '/doc/'
);

builder {
    mount '/pod' => $pod_app;
    mount '/doc' => $doc_app;
};

CONFIGURATION

  • root

    Document root directory. Defaults to the current directory.

  • base_url

    Specifies a base URL for all URLs on a index page. Defaults to the `/`.

  • suffix

    Show only files that match the suffix. No url suffix.

SEE ALSO

Plack

COPYRIGHT

Copyright 2013 Shinichiro Aska

LICENSE

This library is free software; you can redistribute it and/or modify it under the same terms as Perl itself.

Something went wrong with that request. Please try again.