The Perl Toolchain Summit needs more sponsors. If your company depends on Perl, please support this very important event.

NAME

Plack::App::Directory::Markdown - Serve translated HTML from markdown files from document root with directory index

SYNOPSIS

  # 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;

DESCRIPTION

This is a PSGI application for documentation with markdown.

CONFIGURATION

root

Document root directory. Defaults to the current directory.

title

Page title. Defaults to 'Markdown'.

tx_path

Text::Xslate's template directory. You can override default template with 'index.tx' and 'md.tx'.

markdown_class

Specify Markdown module. 'Text::Markdown' as default. The module should have 'markdown' sub routine exportable.

AUTHOR

Masayuki Matsuki <y.songmu@gmail.com>

SEE ALSO

LICENSE

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