DocLife - Document Viewer written in Perl, to run under Plack.
# app.psgi use DocLife::Pod; DocLife::Pod->new( root => "./lib" ); # one-liner plackup -MDocLife::Pod -e 'DocLife::Pod->new( root => "./lib" )->to_app'
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; };
Document root directory. Defaults to the current directory.
Specifies a base URL for all URLs on a index page. Defaults to the `/`.
Show only files that match the suffix. No url suffix.
Plack
Copyright 2013 Shinichiro Aska
This library is free software; you can redistribute it and/or modify it under the same terms as Perl itself.
To install DocLife, copy and paste the appropriate command in to your terminal.
cpanm
cpanm DocLife
CPAN shell
perl -MCPAN -e shell install DocLife
For more information on module installation, please visit the detailed CPAN module installation guide.