Plack::App::Directory::Markdown - Serve translated HTML from markdown files from document root with directory index
# app.psgi use Plack::App::Directory::Markdown; my $app = Plack::App::Directory::Markdown->new->to_app; # app.psgi(with options) use Plack::App::Directory::Markdown; my $app = Plack::App::Directory::Markdown->new({ root => '/path/to/markdown_files', title => 'page title', tx_path => '/path/to/xslate_templates', markdown_class => 'Text::Markdown', })->to_app;
This is a PSGI application for documentation with markdown.
Document root directory. Defaults to the current directory.
Page title. Defaults to 'Markdown'.
Text::Xslate's template directory. You can override default template with 'index.tx' and 'md.tx'.
Specify Markdown module. 'Text::Markdown' as default. The module should have 'markdown' sub routine exportable.
Masayuki Matsuki <y.songmu@gmail.com>
This library is free software; you can redistribute it and/or modify it under the same terms as Perl itself.
To install Plack::App::Directory::Markdown, copy and paste the appropriate command in to your terminal.
cpanm
cpanm Plack::App::Directory::Markdown
CPAN shell
perl -MCPAN -e shell install Plack::App::Directory::Markdown
For more information on module installation, please visit the detailed CPAN module installation guide.