Masayuki Matsuki > Plack-App-Directory-Markdown > Plack::App::Directory::Markdown

Download:
Plack-App-Directory-Markdown-0.07.tar.gz

Dependencies

Annotate this POD

Website

View/Report Bugs
Module Version: 0.07   Source  

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.

syntax highlighting: